PAGI\Node\NodeActionCommand::execute PHP Method

execute() public method

As an action, execute the given callback.
public execute ( Closure $callback ) : NodeActionCommand
$callback Closure
return NodeActionCommand
    public function execute(\Closure $callback)
    {
        $this->action = self::NODE_ACTION_EXECUTE;
        $this->data['callback'] = $callback;
        return $this;
    }