You are here

public function StaticReflectionService::getClassNamespace in Plug 7

Parameters

string $class:

Return value

string

Overrides ReflectionService::getClassNamespace

File

lib/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/StaticReflectionService.php, line 51

Class

StaticReflectionService
PHP Runtime Reflection Service.

Namespace

Doctrine\Common\Persistence\Mapping

Code

public function getClassNamespace($className) {
  $namespace = '';
  if (strpos($className, '\\') !== false) {
    $namespace = strrev(substr(strrev($className), strpos(strrev($className), '\\') + 1));
  }
  return $namespace;
}