public function __construct($node, $target, $position) { $this->node = $node; $this->target = $this->resolveNode($target); $this->position = $position; $this->setEventDispatcher($node->getEventDispatcher()); }