/** * Sets a collection. * * @param \Yosymfony\Spress\Core\ContentManager\Collection\CollectionInterface $collection */ public function setCollection(CollectionInterface $collection) { $this->collections[$collection->getName()] = $collection; }