public function RuntimeReflectionService::getParentClasses in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/RuntimeReflectionService.php \Doctrine\Common\Persistence\Mapping\RuntimeReflectionService::getParentClasses()
Returns an array of the parent classes (not interfaces) for the given class.
Parameters
string $class:
Return value
array
Throws
\Doctrine\Common\Persistence\Mapping\MappingException
Overrides ReflectionService::getParentClasses
File
- vendor/
doctrine/ common/ lib/ Doctrine/ Common/ Persistence/ Mapping/ RuntimeReflectionService.php, line 38
Class
- RuntimeReflectionService
- PHP Runtime Reflection Service.
Namespace
Doctrine\Common\Persistence\MappingCode
public function getParentClasses($class) {
if (!class_exists($class)) {
throw MappingException::nonExistingClass($class);
}
return class_parents($class);
}