ApiGen\Parser\Reflection\ReflectionElement::getShortDescription PHP Method

getShortDescription() public method

public getShortDescription ( )
    public function getShortDescription()
    {
        $short = $this->reflection->getAnnotation(ReflectionAnnotation::SHORT_DESCRIPTION);
        if (!empty($short)) {
            return $short;
        }
        if ($this instanceof ReflectionProperty || $this instanceof ReflectionConstant) {
            $var = $this->getAnnotation('var');
            list(, $short) = preg_split('~\\s+|$~', $var[0], 2);
        }
        return $short;
    }