PHP Класс Scientist\Result

Here we have the results of our experiment. My fingers are crossed for you! - Dayle.
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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.

Открытые методы

Метод Описание
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.

Описание методов

getEndMemory() публичный Метод

Get the callback execution ending memory usage.
public getEndMemory ( ) : float
Результат float

getEndTime() публичный Метод

Get the callback execution end time.
public getEndTime ( ) : float
Результат float

getException() публичный Метод

Get the exception thrown by the callback.
public getException ( ) : Exceptio\Exception | null
Результат Exceptio\Exception | null

getMemory() публичный Метод

Get the memory spike amount of the callback.
public getMemory ( ) : float
Результат float

getStartMemory() публичный Метод

Get the callback execution starting memory usage.
public getStartMemory ( ) : float
Результат float

getStartTime() публичный Метод

Get the callback execution start time.
public getStartTime ( ) : float
Результат float

getTime() публичный Метод

Get the execution time of the callback.
public getTime ( ) : float
Результат float

getValue() публичный Метод

Get the callback result value.
public getValue ( ) : mixed
Результат mixed

isMatch() публичный Метод

Determine whether the callback result matches the control.
public isMatch ( ) : boolean
Результат boolean

setEndMemory() публичный Метод

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

setEndTime() публичный Метод

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

setException() публичный Метод

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

setMatch() публичный Метод

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

setStartMemory() публичный Метод

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

setStartTime() публичный Метод

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

setValue() публичный Метод

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

Описание свойств

$endMemory защищенное свойство

The memory usage after the callback is executed.
protected float $endMemory
Результат float

$endTime защищенное свойство

The time the callback finished executing.
protected float $endTime
Результат float

$exception защищенное свойство

Exception thrown by callback.
protected Exception|null $exception
Результат Exception | null

$match защищенное свойство

Does the callback result value match the control.
protected bool $match
Результат boolean

$startMemory защищенное свойство

The memory usage before the callback is executed.
protected float $startMemory
Результат float

$startTime защищенное свойство

The time the callback was executed.
protected float $startTime
Результат float

$value защищенное свойство

Callback result value.
protected mixed $value
Результат mixed