original_string: 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;
              }
          );
      }
code: 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;
              }
          );
      }
code_tokens: 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 ; } ) ; }
docstring: Return workspaces.
  
  @return Workspace[]
  
  @since 1.0
docstring_tokens: Return workspaces .