src/Element/Workspace.php
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;
            }
        );
    }
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;
            }
        );
    }
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 ; } ) ; }
Return collections.

@return Collection[]

@since 1.0
Return collections .