public function __construct(Node $start, NodeMap $nodes, EventDispatcherInterface $eventDispatcher) { $this->start = $start; $this->nodes = $nodes; $this->eventDispatcher = $eventDispatcher; $this->current = null; }