public function getPropertyAnnotations($className, $propertyName, $annotationClassName = null)
    {
        $className = $this->prepareClassReflectionForUsage($className);
        if (!isset($this->classReflectionData[$className][self::DATA_CLASS_PROPERTIES][$propertyName][self::DATA_PROPERTY_ANNOTATIONS])) {
            return [];
        }

        if ($annotationClassName === null) {
            return $this->classReflectionData[$className][self::DATA_CLASS_PROPERTIES][$propertyName][self::DATA_PROPERTY_ANNOTATIONS];
        }

        if (isset($this->classReflectionData[$className][self::DATA_CLASS_PROPERTIES][$propertyName][self::DATA_PROPERTY_ANNOTATIONS][$annotationClassName])) {
            return $this->classReflectionData[$className][self::DATA_CLASS_PROPERTIES][$propertyName][self::DATA_PROPERTY_ANNOTATIONS][$annotationClassName];
        }

        return [];
    }
public function getPropertyAnnotations($className, $propertyName, $annotationClassName = null)
    {
        $className = $this->prepareClassReflectionForUsage($className);
        if (!isset($this->classReflectionData[$className][self::DATA_CLASS_PROPERTIES][$propertyName][self::DATA_PROPERTY_ANNOTATIONS])) {
            return [];
        }

        if ($annotationClassName === null) {
            return $this->classReflectionData[$className][self::DATA_CLASS_PROPERTIES][$propertyName][self::DATA_PROPERTY_ANNOTATIONS];
        }

        if (isset($this->classReflectionData[$className][self::DATA_CLASS_PROPERTIES][$propertyName][self::DATA_PROPERTY_ANNOTATIONS][$annotationClassName])) {
            return $this->classReflectionData[$className][self::DATA_CLASS_PROPERTIES][$propertyName][self::DATA_PROPERTY_ANNOTATIONS][$annotationClassName];
        }

        return [];
    }
public function getPropertyAnnotations ( $ className , $ propertyName , $ annotationClassName = null ) { $ className = $ this -> prepareClassReflectionForUsage ( $ className ) ; if ( ! isset ( $ this -> classReflectionData [ $ className ] [ self :: DATA_CLASS_PROPERTIES ] [ $ propertyName ] [ self :: DATA_PROPERTY_ANNOTATIONS ] ) ) { return [ ] ; } if ( $ annotationClassName === null ) { return $ this -> classReflectionData [ $ className ] [ self :: DATA_CLASS_PROPERTIES ] [ $ propertyName ] [ self :: DATA_PROPERTY_ANNOTATIONS ] ; } if ( isset ( $ this -> classReflectionData [ $ className ] [ self :: DATA_CLASS_PROPERTIES ] [ $ propertyName ] [ self :: DATA_PROPERTY_ANNOTATIONS ] [ $ annotationClassName ] ) ) { return $ this -> classReflectionData [ $ className ] [ self :: DATA_CLASS_PROPERTIES ] [ $ propertyName ] [ self :: DATA_PROPERTY_ANNOTATIONS ] [ $ annotationClassName ] ; } return [ ] ; }
Returns the specified property annotations or an empty array

@param string $className Name of the class
@param string $propertyName Name of the property
@param string $annotationClassName Annotation to filter for
@return array<object>
@api
Returns the specified property annotations or an empty array