src/PAGI/Node/NodeController.php
public function registerResult($name)
    {
        $nodeActionCommand = new NodeActionCommand();
        if (!isset($this->nodeResults[$name])) {
            $this->nodeResults[$name] = array();
        }
        $this->nodeResults[$name][] = $nodeActionCommand;
        return $nodeActionCommand->whenNode($name);
    }
public function registerResult($name)
    {
        $nodeActionCommand = new NodeActionCommand();
        if (!isset($this->nodeResults[$name])) {
            $this->nodeResults[$name] = array();
        }
        $this->nodeResults[$name][] = $nodeActionCommand;
        return $nodeActionCommand->whenNode($name);
    }
public function registerResult ( $ name ) { $ nodeActionCommand = new NodeActionCommand ( ) ; if ( ! isset ( $ this -> nodeResults [ $ name ] ) ) { $ this -> nodeResults [ $ name ] = array ( ) ; } $ this -> nodeResults [ $ name ] [ ] = $ nodeActionCommand ; return $ nodeActionCommand -> whenNode ( $ name ) ; }
Registers a new node result to be taken into account when the given node
is ran.

@param string $name

@return NodeActionCommand
Registers a new node result to be taken into account when the given node is ran .