Metabor\Statemachine\Condition\Callback::__construct PHP Method

__construct() public method

public __construct ( string $name, callable $callable )
$name string
$callable callable
    public function __construct($name, $callable)
    {
        parent::__construct($name);
        if (!is_callable($callable)) {
            throw new InvalidArgumentException('Argument is not callable!');
        }
        $this->callable = $callable;
    }