public function RuntimeReflectionService::getClassNamespace

Parameters

string $class:

Return value

string

Overrides ReflectionService::getClassNamespace

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/RuntimeReflectionService.php, line 59

Class

RuntimeReflectionService
PHP Runtime Reflection Service

Namespace

Doctrine\Common\Persistence\Mapping

Code

public function getClassNamespace($class) {
  $r = new ReflectionClass($class);
  return $r
    ->getNamespaceName();
}