createNode() public method

Convenient method to create a node.
public createNode ( string $name ) : Node
$name string
return PAGI\Node\Node
Example #1
0
 /**
  * Registers a new node in the application. Returns the created node.
  *
  * @param string $name The node to be registered
  *
  * @return \PAGI\Node\Node
  */
 public function register($name)
 {
     $node = $this->client->createNode($name);
     $this->nodes[$name] = $node;
     return $node;
 }