MetadataAwareNameConverter
in package
implements
AdvancedNameConverterInterface
Tags
Interfaces, Classes, Traits and Enums
- AdvancedNameConverterInterface
- Gives access to the class, the format and the context in the property name converters.
Table of Contents
- $attributesMetadataCache : mixed
- $denormalizeCache : mixed
- $fallbackNameConverter : NameConverterInterface|AdvancedNameConverterInterface|null
- $metadataFactory : mixed
- $normalizeCache : mixed
- __construct() : mixed
- denormalize() : string
- Converts a property name to its denormalized value.
- normalize() : string
- Converts a property name to its normalized value.
- denormalizeFallback() : string
- getCacheKey() : string
- getCacheValueForAttributesMetadata() : array<string|int, mixed>
- getCacheValueForDenormalization() : string|null
- getCacheValueForNormalization() : string|null
- normalizeFallback() : string
Properties
$attributesMetadataCache
private
static mixed
$attributesMetadataCache
= []
$denormalizeCache
private
static mixed
$denormalizeCache
= []
$fallbackNameConverter
private
NameConverterInterface|AdvancedNameConverterInterface|null
$fallbackNameConverter
$metadataFactory
private
mixed
$metadataFactory
$normalizeCache
private
static mixed
$normalizeCache
= []
Methods
__construct()
public
__construct(ClassMetadataFactoryInterface $metadataFactory[, NameConverterInterface $fallbackNameConverter = null ]) : mixed
Parameters
- $metadataFactory : ClassMetadataFactoryInterface
- $fallbackNameConverter : NameConverterInterface = null
Return values
mixed —denormalize()
Converts a property name to its denormalized value.
public
denormalize(mixed $propertyName[, string $class = null ][, string $format = null ][, array<string|int, mixed> $context = [] ]) : string
Parameters
- $propertyName : mixed
- $class : string = null
- $format : string = null
- $context : array<string|int, mixed> = []
Return values
string —normalize()
Converts a property name to its normalized value.
public
normalize(mixed $propertyName[, string $class = null ][, string $format = null ][, array<string|int, mixed> $context = [] ]) : string
Parameters
- $propertyName : mixed
- $class : string = null
- $format : string = null
- $context : array<string|int, mixed> = []
Return values
string —denormalizeFallback()
private
denormalizeFallback(string $propertyName[, string $class = null ][, string $format = null ][, array<string|int, mixed> $context = [] ]) : string
Parameters
- $propertyName : string
- $class : string = null
- $format : string = null
- $context : array<string|int, mixed> = []
Return values
string —getCacheKey()
private
getCacheKey(string $class, array<string|int, mixed> $context) : string
Parameters
- $class : string
- $context : array<string|int, mixed>
Return values
string —getCacheValueForAttributesMetadata()
private
getCacheValueForAttributesMetadata(string $class, array<string|int, mixed> $context) : array<string|int, mixed>
Parameters
- $class : string
- $context : array<string|int, mixed>
Return values
array<string|int, mixed> —getCacheValueForDenormalization()
private
getCacheValueForDenormalization(string $propertyName, string $class, array<string|int, mixed> $context) : string|null
Parameters
- $propertyName : string
- $class : string
- $context : array<string|int, mixed>
Return values
string|null —getCacheValueForNormalization()
private
getCacheValueForNormalization(string $propertyName, string $class) : string|null
Parameters
- $propertyName : string
- $class : string
Return values
string|null —normalizeFallback()
private
normalizeFallback(string $propertyName[, string $class = null ][, string $format = null ][, array<string|int, mixed> $context = [] ]) : string
Parameters
- $propertyName : string
- $class : string = null
- $format : string = null
- $context : array<string|int, mixed> = []