public function __construct(Node $source, Node $destination = null, $type = -1) { $this->source = $source; $this->destination = $destination; $this->type = $type; }