/** * Checks whether the given element is a class and if its parent could not be resolved; increment the counter. * * @param DescriptorAbstract $element */ protected function incrementUnresolvedParentCounter($element) { if (!$element instanceof ClassDescriptor) { return; } if (is_string($element->getParent())) { $this->unresolvedParentClassesCount++; } }