annotationsReader = $annotationsReader; $this->modelRegistry = $modelRegistry; $this->phpDocReader = new PropertyPhpDocReader(); $this->swgAnnotationsReader = new SwgAnnotationsReader($annotationsReader, $modelRegistry); $this->symfonyConstraintAnnotationReader = new SymfonyConstraintAnnotationReader($annotationsReader); } public function updateDefinition(\ReflectionClass $reflectionClass, Schema $schema) { $this->swgAnnotationsReader->updateDefinition($reflectionClass, $schema); $this->symfonyConstraintAnnotationReader->setSchema($schema); } public function getPropertyName($reflection, string $default): string { return $this->swgAnnotationsReader->getPropertyName($reflection, $default); } public function updateProperty($reflection, Schema $property, array $serializationGroups = null) { $this->phpDocReader->updateProperty($reflection, $property); $this->swgAnnotationsReader->updateProperty($reflection, $property, $serializationGroups); $this->symfonyConstraintAnnotationReader->updateProperty($reflection, $property); } }