PHP 클래스 Scientist\Machine

파일 보기 프로젝트 열기: daylerees/scientist 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$callback callable The callback to execute.
$muted boolean Should exceptions be muted.
$params array Parameters to provide to the callback.
$result Result The result instance.

공개 메소드들

메소드 설명
__construct ( callable $callback, array $params = [], boolean $muted = false ) Inject machine dependencies.
execute ( ) : Result Execute the callback and retrieve a result.

보호된 메소드들

메소드 설명
executeCallback ( ) : void Execute the callback with parameters.
executeMutedCallback ( ) : void Execute the callback, but swallow exceptions.
setEndValues ( ) : void Set values after the callback has executed.
setStartValues ( ) : void Set values before callback is executed.

메소드 상세

__construct() 공개 메소드

Inject machine dependencies.
public __construct ( callable $callback, array $params = [], boolean $muted = false )
$callback callable
$params array
$muted boolean

execute() 공개 메소드

Execute the callback and retrieve a result.
public execute ( ) : Result
리턴 Result

executeCallback() 보호된 메소드

Execute the callback with parameters.
protected executeCallback ( ) : void
리턴 void

executeMutedCallback() 보호된 메소드

Execute the callback, but swallow exceptions.
protected executeMutedCallback ( ) : void
리턴 void

setEndValues() 보호된 메소드

Set values after the callback has executed.
protected setEndValues ( ) : void
리턴 void

setStartValues() 보호된 메소드

Set values before callback is executed.
protected setStartValues ( ) : void
리턴 void

프로퍼티 상세

$callback 보호되어 있는 프로퍼티

The callback to execute.
protected callable $callback
리턴 callable

$muted 보호되어 있는 프로퍼티

Should exceptions be muted.
protected bool $muted
리턴 boolean

$params 보호되어 있는 프로퍼티

Parameters to provide to the callback.
protected array $params
리턴 array

$result 보호되어 있는 프로퍼티

The result instance.
protected Result,Scientist $result
리턴 Result