PHP Class Metabor\Statemachine\Condition\Callback

Author: otischlinger
Inheritance: extends Metabor\Named, implements MetaborStd\Statemachine\ConditionInterface
Show file Open project: metabor/statemachine

Public Methods

Method Description
__construct ( string $name, callable $callable )
checkCondition ( $subject, ArrayAccess $context )

Method Details

__construct() public method

public __construct ( string $name, callable $callable )
$name string
$callable callable

checkCondition() public method

public checkCondition ( $subject, ArrayAccess $context )
$context ArrayAccess