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
 /**
  * {@inheritDoc}
  */
 public function getShortName()
 {
     return $this->betterReflectionClass->getShortName();
 }
Example #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);
 }