Example #1
0
 /**
  * Constructor
  *
  * @param  string $name
  * @param  int    $mode mode in octal (0XXX)
  * @return void
  **/
 public function __construct($name, $mode = null)
 {
     parent::__construct($name);
     $this->setMode($mode);
 }
Example #2
0
 /**
  * Constructor
  *
  * @param  string $from endpoint (what the link points to)
  * @param  string $to   used as $name for Node
  * @return void
  **/
 public function __construct($from, $to)
 {
     parent::__construct($to);
     $this->setEndpoint($from);
 }