/** * Get the total parent count of a class * * @param string $class Full classname or instance * * @return integer */ protected function _getAncestorCount($class) { return count(OS::_getAncestors($class)); }