getShortName() public method

Get the "short" name of the class (e.g. for A\B\Foo, this will return "Foo").
public getShortName ( ) : string
return string
Exemplo n.º 1
0
 /**
  * {@inheritDoc}
  */
 public function getShortName()
 {
     return $this->betterReflectionClass->getShortName();
 }
Exemplo n.º 2
0
 /**
  * @param \BetterReflection\Reflection\ReflectionClass $class
  * @param string                                       $displayNameFormat
  *
  * @return string
  */
 public function mergeClassNameWithShortDescription(ReflectionClass $class, $displayNameFormat = '%s')
 {
     $doc = new DocBlock($class->getDocComment());
     $displayName = sprintf($displayNameFormat, $class->getShortName());
     return $this->mergeNameWithShortDescription($class->getShortName(), $doc, $displayName);
 }