/** * Returns the number of nodes in this workspace. * * If $includeBaseWorkspaces is enabled, also nodes of base workspaces are * taken into account. If it is disabled (default) then the number of nodes * is the actual number (+1) of changes related to its base workspaces. * * A node count of 1 means that no changes are pending in this workspace * because a workspace always contains at least its Root Node. * * @return integer * @api */ public function getNodeCount() { return $this->nodeDataRepository->countByWorkspace($this); }