public function __destruct() { if (null === $this->prefixes) { $this->collection ->addPrefix($this->route ->getPath()); } if (null !== $this->host) { $this->addHost($this->collection, $this->host); } $this->parent ->addCollection($this->collection); }