/** * Returns the number of child nodes a similar getChildNodes() call would return. * * @param string $nodeTypeFilter If specified, only nodes with that node type are considered * @param Workspace $workspace * @param array $dimensions * @return integer The number of child nodes */ public function getNumberOfChildNodes($nodeTypeFilter = NULL, Workspace $workspace, array $dimensions) { return $this->nodeDataRepository->countByParentAndNodeType($this->path, $nodeTypeFilter, $workspace, $dimensions); }