PHP Class Scientist\Result

Here we have the results of our experiment. My fingers are crossed for you! - Dayle.
Afficher le fichier Open project: daylerees/scientist Class Usage Examples

Protected Properties

Свойство Type Description
$endMemory float The memory usage after the callback is executed.
$endTime float The time the callback finished executing.
$exception Exception | null Exception thrown by callback.
$match boolean Does the callback result value match the control.
$startMemory float The memory usage before the callback is executed.
$startTime float The time the callback was executed.
$value mixed Callback result value.

Méthodes publiques

Méthode Description
getEndMemory ( ) : float Get the callback execution ending memory usage.
getEndTime ( ) : float Get the callback execution end time.
getException ( ) : Exceptio\Exception | null Get the exception thrown by the callback.
getMemory ( ) : float Get the memory spike amount of the callback.
getStartMemory ( ) : float Get the callback execution starting memory usage.
getStartTime ( ) : float Get the callback execution start time.
getTime ( ) : float Get the execution time of the callback.
getValue ( ) : mixed Get the callback result value.
isMatch ( ) : boolean Determine whether the callback result matches the control.
setEndMemory ( float $endMemory ) Set the callback execution ending memory usage.
setEndTime ( float $endTime ) Set the callback execution end time.
setException ( Exceptio\Exception | null $exception ) Set the exception thrown by the callback.
setMatch ( boolean $match ) Set whether the callback result matches the control.
setStartMemory ( float $startMemory ) Set the callback execution starting memory usage.
setStartTime ( float $startTime ) Set the callback execution start time.
setValue ( mixed $value ) Set the callback result value.

Method Details

getEndMemory() public méthode

Get the callback execution ending memory usage.
public getEndMemory ( ) : float
Résultat float

getEndTime() public méthode

Get the callback execution end time.
public getEndTime ( ) : float
Résultat float

getException() public méthode

Get the exception thrown by the callback.
public getException ( ) : Exceptio\Exception | null
Résultat Exceptio\Exception | null

getMemory() public méthode

Get the memory spike amount of the callback.
public getMemory ( ) : float
Résultat float

getStartMemory() public méthode

Get the callback execution starting memory usage.
public getStartMemory ( ) : float
Résultat float

getStartTime() public méthode

Get the callback execution start time.
public getStartTime ( ) : float
Résultat float

getTime() public méthode

Get the execution time of the callback.
public getTime ( ) : float
Résultat float

getValue() public méthode

Get the callback result value.
public getValue ( ) : mixed
Résultat mixed

isMatch() public méthode

Determine whether the callback result matches the control.
public isMatch ( ) : boolean
Résultat boolean

setEndMemory() public méthode

Set the callback execution ending memory usage.
public setEndMemory ( float $endMemory )
$endMemory float

setEndTime() public méthode

Set the callback execution end time.
public setEndTime ( float $endTime )
$endTime float

setException() public méthode

Set the exception thrown by the callback.
public setException ( Exceptio\Exception | null $exception )
$exception Exceptio\Exception | null

setMatch() public méthode

Set whether the callback result matches the control.
public setMatch ( boolean $match )
$match boolean

setStartMemory() public méthode

Set the callback execution starting memory usage.
public setStartMemory ( float $startMemory )
$startMemory float

setStartTime() public méthode

Set the callback execution start time.
public setStartTime ( float $startTime )
$startTime float

setValue() public méthode

Set the callback result value.
public setValue ( mixed $value )
$value mixed

Property Details

$endMemory protected_oe property

The memory usage after the callback is executed.
protected float $endMemory
Résultat float

$endTime protected_oe property

The time the callback finished executing.
protected float $endTime
Résultat float

$exception protected_oe property

Exception thrown by callback.
protected Exception|null $exception
Résultat Exception | null

$match protected_oe property

Does the callback result value match the control.
protected bool $match
Résultat boolean

$startMemory protected_oe property

The memory usage before the callback is executed.
protected float $startMemory
Résultat float

$startTime protected_oe property

The time the callback was executed.
protected float $startTime
Résultat float

$value protected_oe property

Callback result value.
protected mixed $value
Résultat mixed