public function RuntimeReflectionService::getClassShortName

Return the shortname of a class.

Parameters

string $class:

Return value

string

Overrides ReflectionService::getClassShortName

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/RuntimeReflectionService.php, line 49

Class

RuntimeReflectionService
PHP Runtime Reflection Service

Namespace

Doctrine\Common\Persistence\Mapping

Code

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