public function addCollection(self $collection)
    {
        $this->renderDefinitions = \array_merge($this->renderDefinitions, $collection->all());
        $this->resources = \array_merge($this->resources, $collection->getResources());
    }
public function addCollection(self $collection)
    {
        $this->renderDefinitions = \array_merge($this->renderDefinitions, $collection->all());
        $this->resources = \array_merge($this->resources, $collection->getResources());
    }
public function addCollection ( self $ collection ) { $ this -> renderDefinitions = \ array_merge ( $ this -> renderDefinitions , $ collection -> all ( ) ) ; $ this -> resources = \ array_merge ( $ this -> resources , $ collection -> getResources ( ) ) ; }
Adds a render definition collection at the end of the current set by appending all
render definitions of the added collection.

@param RenderDefinitionCollection $collection
Adds a render definition collection at the end of the current set by appending all render definitions of the added collection .