original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Add new Collection
  
  @param string $title
  
  @return Collection
  
  @since 1.0
docstring_tokens: Add new Collection