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

@param \Closure $callback

@return \PAGI\Node\NodeActionCommand
As an action execute the given callback .