public function addCollection($title)
    {
        $collections = $this->getCollections();

        /** @var Collection $collection */
        $collection = $this->getExtensions()->createElement($this, 'app:collection');
        $collection->addTitle($title);

        $collections[] = $collection;
        $this->setCachedProperty('collections', $collections);

        return $collection;
    }
public function addCollection($title)
    {
        $collections = $this->getCollections();

        /** @var Collection $collection */
        $collection = $this->getExtensions()->createElement($this, 'app:collection');
        $collection->addTitle($title);

        $collections[] = $collection;
        $this->setCachedProperty('collections', $collections);

        return $collection;
    }
public function addCollection ( $ title ) { $ collections = $ this -> getCollections ( ) ; /** @var Collection $collection */ $ collection = $ this -> getExtensions ( ) -> createElement ( $ this , 'app:collection' ) ; $ collection -> addTitle ( $ title ) ; $ collections [ ] = $ collection ; $ this -> setCachedProperty ( 'collections' , $ collections ) ; return $ collection ; }
Add new Collection

@param string $title

@return Collection

@since 1.0
Add new Collection