Application API Documentation

Directional Consulting

Classes

ObjectModelDescriber in package implements ModelDescriberInterface, ModelRegistryAwareInterface Uses ModelRegistryAwareTrait, ApplyOpenApiDiscriminatorTrait

Interfaces, Classes and Traits

ModelDescriberInterface
ModelRegistryAwareInterface

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

$nameConverter

private NameConverterInterface|null $nameConverter

$propertyInfo

private PropertyInfoExtractorInterface $propertyInfo

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

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
Return values
array<string|int, ReflectionProperty>|array<string|int, ReflectionMethod>

        

Search Results

Search results

Found Results