You are here

public function RuntimeReflectionService::getClassNamespace in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/RuntimeReflectionService.php \Doctrine\Common\Persistence\Mapping\RuntimeReflectionService::getClassNamespace()

Parameters

string $class:

Return value

string

Overrides ReflectionService::getClassNamespace

File

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

Class

RuntimeReflectionService
PHP Runtime Reflection Service.

Namespace

Doctrine\Common\Persistence\Mapping

Code

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