original_string: public function addWorkspace($title)
      {
          $workspaces = $this->getWorkspaces();
  
          /** @var Workspace $workspace */
          $workspace = $this->getExtensions()->createElement($this, 'app:workspace');
          $workspace->addTitle($title);
  
          $workspaces[] = $workspace;
          $this->setCachedProperty('workspaces', $workspaces);
  
          return $workspace;
      }
code: public function addWorkspace($title)
      {
          $workspaces = $this->getWorkspaces();
  
          /** @var Workspace $workspace */
          $workspace = $this->getExtensions()->createElement($this, 'app:workspace');
          $workspace->addTitle($title);
  
          $workspaces[] = $workspace;
          $this->setCachedProperty('workspaces', $workspaces);
  
          return $workspace;
      }
code_tokens: public function addWorkspace ( $ title ) { $ workspaces = $ this -> getWorkspaces ( ) ; /** @var Workspace $workspace */ $ workspace = $ this -> getExtensions ( ) -> createElement ( $ this , 'app:workspace' ) ; $ workspace -> addTitle ( $ title ) ; $ workspaces [ ] = $ workspace ; $ this -> setCachedProperty ( 'workspaces' , $ workspaces ) ; return $ workspace ; }
docstring: Add workspace to document.
  
  @param string $title
  
  @return Workspace
  
  @since 1.0
docstring_tokens: Add workspace to document .