src/Document/ServiceDocument.php
public function getWorkspaces()
    {
        return $this->getCachedProperty(
            'workspaces',
            function () {
                $workspaces = [];
                $items = $this->getDomElement()->getElementsByTagNameNS($this->ns(), 'workspace');
                foreach ($items as $item) {
                    $workspaces[] = $this->getExtensions()->parseElement($this, $item);
                }

                return $workspaces;
            }
        );
    }
public function getWorkspaces()
    {
        return $this->getCachedProperty(
            'workspaces',
            function () {
                $workspaces = [];
                $items = $this->getDomElement()->getElementsByTagNameNS($this->ns(), 'workspace');
                foreach ($items as $item) {
                    $workspaces[] = $this->getExtensions()->parseElement($this, $item);
                }

                return $workspaces;
            }
        );
    }
public function getWorkspaces ( ) { return $ this -> getCachedProperty ( 'workspaces' , function ( ) { $ workspaces = [ ] ; $ items = $ this -> getDomElement ( ) -> getElementsByTagNameNS ( $ this -> ns ( ) , 'workspace' ) ; foreach ( $ items as $ item ) { $ workspaces [ ] = $ this -> getExtensions ( ) -> parseElement ( $ this , $ item ) ; } return $ workspaces ; } ) ; }
Return workspaces.

@return Workspace[]

@since 1.0
Return workspaces .