public function RuntimeReflectionService::getClassShortName in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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\MappingCode
public function getClassShortName($class) {
$reflectionClass = new ReflectionClass($class);
return $reflectionClass
->getShortName();
}