src/Document/ServiceDocument.php
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;
    }
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;
    }
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 ; }
Add workspace to document.

@param string $title

@return Workspace

@since 1.0
Add workspace to document .