MetadataAwareNameConverter
in package
implements
AdvancedNameConverterInterface
FinalYes
Tags
Table of Contents
Interfaces
- AdvancedNameConverterInterface
- Gives access to the class, the format and the context in the property name converters.
Properties
- $attributesMetadataCache : mixed
- $denormalizeCache : mixed
- $fallbackNameConverter : NameConverterInterface|AdvancedNameConverterInterface|null
- $metadataFactory : mixed
- $normalizeCache : mixed
Methods
- __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
denormalize()
Converts a property name to its denormalized value.
public
denormalize(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
stringnormalize()
Converts a property name to its normalized value.
public
normalize(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
stringdenormalizeFallback()
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
stringgetCacheKey()
private
getCacheKey(string $class, array<string|int, mixed> $context) : string
Parameters
- $class : string
- $context : array<string|int, mixed>
Return values
stringgetCacheValueForAttributesMetadata()
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|nullgetCacheValueForNormalization()
private
getCacheValueForNormalization(string $propertyName, string $class) : string|null
Parameters
- $propertyName : string
- $class : string
Return values
string|nullnormalizeFallback()
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> = []