You are here

public function RuntimeReflectionService::getParentClasses in Plug 7

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

lib/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/RuntimeReflectionService.php, line 38

Class

RuntimeReflectionService
PHP Runtime Reflection Service.

Namespace

Doctrine\Common\Persistence\Mapping

Code

public function getParentClasses($class) {
  if (!class_exists($class)) {
    throw MappingException::nonExistingClass($class);
  }
  return class_parents($class);
}