original_string: public function getCollections()
      {
          return $this->getCachedProperty(
              'collections',
              function () {
                  $result = [];
                  /** @var \DOMNodeList $items */
                  // No REQUIRED — no exception.
                  $items = $this->query('app:collection');
                  foreach ($items as $item) {
                      $result[] = $this->getExtensions()->parseElement($this, $item);
                  }
  
                  return $result;
              }
          );
      }
code: public function getCollections()
      {
          return $this->getCachedProperty(
              'collections',
              function () {
                  $result = [];
                  /** @var \DOMNodeList $items */
                  // No REQUIRED — no exception.
                  $items = $this->query('app:collection');
                  foreach ($items as $item) {
                      $result[] = $this->getExtensions()->parseElement($this, $item);
                  }
  
                  return $result;
              }
          );
      }
code_tokens: public function getCollections ( ) { return $ this -> getCachedProperty ( 'collections' , function ( ) { $ result = [ ] ; /** @var \DOMNodeList $items */ // No REQUIRED — no exception. $ items = $ this -> query ( 'app:collection' ) ; foreach ( $ items as $ item ) { $ result [ ] = $ this -> getExtensions ( ) -> parseElement ( $ this , $ item ) ; } return $ result ; } ) ; }
docstring: Return collections.
  
  @return Collection[]
  
  @since 1.0
docstring_tokens: Return collections .