public function equalsChildless(NavigationItem $other) { return $this->getName() == $other->getName(); }