public function __construct($entryPoint) { $this->entryPoint = $entryPoint; $this->nodes = new \SplObjectStorage(); }