private function getAnnotations($openPointer)
    {
        $annotations = \array_merge(
            [],
            ...\array_values(AnnotationHelper::getAnnotations($this->phpcsFile, $openPointer))
        );

        \uasort($annotations, function (Annotation $annotation1, Annotation $annotation2) {
            return $annotation1->getStartPointer() <=> $annotation2->getEndPointer();
        });

        return $annotations;
    }
private function getAnnotations($openPointer)
    {
        $annotations = \array_merge(
            [],
            ...\array_values(AnnotationHelper::getAnnotations($this->phpcsFile, $openPointer))
        );

        \uasort($annotations, function (Annotation $annotation1, Annotation $annotation2) {
            return $annotation1->getStartPointer() <=> $annotation2->getEndPointer();
        });

        return $annotations;
    }
private function getAnnotations ( $ openPointer ) { $ annotations = \ array_merge ( [ ] , ... \ array_values ( AnnotationHelper :: getAnnotations ( $ this -> phpcsFile , $ openPointer ) ) ) ; \ uasort ( $ annotations , function ( Annotation $ annotation1 , Annotation $ annotation2 ) { return $ annotation1 -> getStartPointer ( ) <=> $ annotation2 -> getEndPointer ( ) ; } ) ; return $ annotations ; }
Get annotations.

@param int $openPointer

@return \SlevomatCodingStandard\Helpers\Annotation[]
Get annotations .