D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
local
/
psa
/
admin
/
plib
/
vendor
/
jms
/
serializer
/
src
/
Metadata
/
Driver
/
Filename :
AnnotationDriver.php
back
Copy
<?php declare(strict_types=1); namespace JMS\Serializer\Metadata\Driver; use Doctrine\Common\Annotations\Reader; use JMS\Serializer\Expression\CompilableExpressionEvaluatorInterface; use JMS\Serializer\Naming\PropertyNamingStrategyInterface; use JMS\Serializer\Type\ParserInterface; /** * @deprecated */ class AnnotationDriver extends AnnotationOrAttributeDriver { /** * @var Reader */ private $reader; public function __construct(Reader $reader, PropertyNamingStrategyInterface $namingStrategy, ?ParserInterface $typeParser = null, ?CompilableExpressionEvaluatorInterface $expressionEvaluator = null) { parent::__construct($namingStrategy, $typeParser, $expressionEvaluator, $reader); $this->reader = $reader; } /** * @return list<object> */ protected function getClassAnnotations(\ReflectionClass $class): array { return $this->reader->getClassAnnotations($class); } /** * @return list<object> */ protected function getMethodAnnotations(\ReflectionMethod $method): array { return $this->reader->getMethodAnnotations($method); } /** * @return list<object> */ protected function getPropertyAnnotations(\ReflectionProperty $property): array { return $this->reader->getPropertyAnnotations($property); } }