protected function getFieldAnnotation($prop, string $annotationClass)
    {
        if ($prop instanceof \ReflectionProperty) {
            return $this->reader->getPropertyAnnotation($prop, $annotationClass);
        }

        return $this->reader->getMethodAnnotation($prop, $annotationClass);
    }
protected function getFieldAnnotation($prop, string $annotationClass)
    {
        if ($prop instanceof \ReflectionProperty) {
            return $this->reader->getPropertyAnnotation($prop, $annotationClass);
        }

        return $this->reader->getMethodAnnotation($prop, $annotationClass);
    }
protected function getFieldAnnotation ( $ prop , string $ annotationClass ) { if ( $ prop instanceof \ ReflectionProperty ) { return $ this -> reader -> getPropertyAnnotation ( $ prop , $ annotationClass ) ; } return $ this -> reader -> getMethodAnnotation ( $ prop , $ annotationClass ) ; }
Get field specific annotation matching given implementor

@param \ReflectionMethod|\ReflectionProperty $prop
@param string                                $annotationClass

@return mixed
Get field specific annotation matching given implementor