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

getAnnotations() public method

public getAnnotations ( )
    public function getAnnotations()
    {
        if ($this->annotations === null) {
            $annotations = $this->reflection->getAnnotations();
            $annotations = array_change_key_case($annotations, CASE_LOWER);
            unset($annotations[ReflectionAnnotation::SHORT_DESCRIPTION]);
            unset($annotations[ReflectionAnnotation::LONG_DESCRIPTION]);
            $annotations += $this->getAnnotationsFromReflection($this->reflection);
            $this->annotations = $annotations;
        }
        return $this->annotations;
    }