Classes
ObjectModelDescriber
in package
implements
ModelDescriberInterface, ModelRegistryAwareInterface
Uses
ModelRegistryAwareTrait, ApplyOpenApiDiscriminatorTrait
Interfaces, Classes and Traits
Table of Contents
- $classMetadataFactory : ClassMetadataFactoryInterface|null
- $doctrineReader : Reader
- $mediaTypes : array<string|int, string>
- $modelRegistry : ModelRegistry
- $nameConverter : NameConverterInterface|null
- $propertyDescribers : array<string|int, PropertyDescriberInterface>
- $propertyInfo : PropertyInfoExtractorInterface
- $useValidationGroups : bool
- __construct() : mixed
- describe() : mixed
- setModelRegistry() : mixed
- supports() : bool
- camelize() : string
- Camelizes a given string.
- describeProperty() : mixed
- getReflections() : array<string|int, ReflectionProperty>|array<string|int, ReflectionMethod>
Properties
$classMetadataFactory
private
ClassMetadataFactoryInterface|null
$classMetadataFactory
$doctrineReader
private
Reader
$doctrineReader
$mediaTypes
private
array<string|int, string>
$mediaTypes
$modelRegistry
private
ModelRegistry
$modelRegistry
$nameConverter
private
NameConverterInterface|null
$nameConverter
$propertyDescribers
private
array<string|int, PropertyDescriberInterface>
$propertyDescribers
$propertyInfo
private
PropertyInfoExtractorInterface
$propertyInfo
$useValidationGroups
private
bool
$useValidationGroups
Methods
__construct()
public
__construct(PropertyInfoExtractorInterface $propertyInfo, Reader $reader, iteratable<string|int, mixed> $propertyDescribers, array<string|int, mixed> $mediaTypes[, NameConverterInterface $nameConverter = null ][, bool $useValidationGroups = false ][, ClassMetadataFactoryInterface $classMetadataFactory = null ]) : mixed
Parameters
- $propertyInfo : PropertyInfoExtractorInterface
- $reader : Reader
- $propertyDescribers : iteratable<string|int, mixed>
- $mediaTypes : array<string|int, mixed>
- $nameConverter : NameConverterInterface = null
- $useValidationGroups : bool = false
- $classMetadataFactory : ClassMetadataFactoryInterface = null
Return values
mixed —describe()
public
describe(Model $model, Schema $schema) : mixed
Parameters
- $model : Model
- $schema : Schema
Return values
mixed —setModelRegistry()
public
setModelRegistry(ModelRegistry $modelRegistry) : mixed
Parameters
- $modelRegistry : ModelRegistry
Return values
mixed —supports()
public
supports(Model $model) : bool
Parameters
- $model : Model
Return values
bool —camelize()
Camelizes a given string.
private
camelize(string $string) : string
Parameters
- $string : string
Return values
string —describeProperty()
private
describeProperty(array<string|int, Type> $types, Model $model, Schema $property, string $propertyName) : mixed
Parameters
- $types : array<string|int, Type>
- $model : Model
- $property : Schema
- $propertyName : string
Return values
mixed —getReflections()
private
getReflections(ReflectionClass $reflClass, string $propertyName) : array<string|int, ReflectionProperty>|array<string|int, ReflectionMethod>
Parameters
- $reflClass : ReflectionClass
- $propertyName : string