Doctrine\ODM\OrientDB\Mapper\Annotations\Reader::getMethodAnnotation PHP Method

getMethodAnnotation() public method

Gets a method annotation.
public getMethodAnnotation ( ReflectionMethod $method, string $annotation ) : The
$method ReflectionMethod
$annotation string The name of the annotation.
return The Annotation or null, if the requested annotation does not exist.
    public function getMethodAnnotation(\ReflectionMethod $method, $annotation)
    {
        return $this->getReader()->getMethodAnnotation($method, $annotation);
    }