public function RuntimeReflectionService::getClassNamespace in Plug 7
Parameters
string $class:
Return value
string
Overrides ReflectionService::getClassNamespace
File
- lib/
doctrine/ common/ lib/ Doctrine/ Common/ Persistence/ Mapping/ RuntimeReflectionService.php, line 60
Class
- RuntimeReflectionService
- PHP Runtime Reflection Service.
Namespace
Doctrine\Common\Persistence\MappingCode
public function getClassNamespace($class) {
$reflectionClass = new ReflectionClass($class);
return $reflectionClass
->getNamespaceName();
}