Jackalope\Transport\WorkspaceManagementInterface::createWorkspace PHP Method

createWorkspace() public method

If srcWorkspace is given: Creates a new Workspace with the specified name initialized with a clone of the content of the workspace srcWorkspace. Semantically, this method is equivalent to creating a new workspace and manually cloning srcWorkspace to it; however, this method may assist some implementations in optimizing subsequent Node.update and Node.merge calls between the new workspace and its source. The new workspace can be accessed through a login specifying its name.
public createWorkspace ( string $name, string $srcWorkspace = null )
$name string A String, the name of the new workspace.
$srcWorkspace string The name of the workspace from which the new workspace is to be cloned.
    public function createWorkspace($name, $srcWorkspace = null);
WorkspaceManagementInterface