You are here

public function RuntimeReflectionService::getClassNamespace in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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();
}