protected function hasControllerAnnotation(\ReflectionFunctionAbstract $controller, string $annotationClass) : bool
    {
        return $this->getControllerAnnotation($controller, $annotationClass) !== null;
    }
protected function hasControllerAnnotation(\ReflectionFunctionAbstract $controller, string $annotationClass) : bool
    {
        return $this->getControllerAnnotation($controller, $annotationClass) !== null;
    }
protected function hasControllerAnnotation ( \ ReflectionFunctionAbstract $ controller , string $ annotationClass ) : bool { return $ this -> getControllerAnnotation ( $ controller , $ annotationClass ) !== null ; }
Checks whether a controller has an annotation on the class or method.

@param \ReflectionFunctionAbstract $controller
@param string                      $annotationClass

@return bool Whether the annotation is present.
Checks whether a controller has an annotation on the class or method .