You are here

public function RuntimeReflectionService::getClassShortName 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::getClassShortName()

Returns the shortname of a class.

Parameters

string $class:

Return value

string

Overrides ReflectionService::getClassShortName

File

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

Class

RuntimeReflectionService
PHP Runtime Reflection Service.

Namespace

Doctrine\Common\Persistence\Mapping

Code

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