Doctrine\ODM\OrientDB\Mapper\ClassMetadataFactory::getObjectPropertyAnnotations PHP Метод

getObjectPropertyAnnotations() публичный Метод

Returns all the annotations in the $document's properties.
public getObjectPropertyAnnotations ( mixed $document ) : array
$document mixed
Результат array
    public function getObjectPropertyAnnotations($document)
    {
        $cacheKey = "object_property_annotations_" . get_class($document);
        if (!$this->cache->contains($cacheKey)) {
            $refObject = new \ReflectionObject($document);
            $annotations = array();
            foreach ($refObject->getProperties() as $property) {
                $annotation = $this->getPropertyAnnotation($property);
                if ($annotation) {
                    $annotations[$property->getName()] = $annotation;
                }
            }
            $this->cache->save($cacheKey, $annotations);
        }
        return $this->cache->fetch($cacheKey);
    }