interface NameConverterInterface
Defines the interface for property name converters.
@author Kévin Dunglas <dunglas@gmail.com>
Hierarchy
- interface \Symfony\Component\Serializer\NameConverter\NameConverterInterface
Expanded class hierarchy of NameConverterInterface
All classes that implement NameConverterInterface
5 files declare their use of NameConverterInterface
- AbstractNormalizer.php in vendor/
symfony/ serializer/ Normalizer/ AbstractNormalizer.php - AbstractObjectNormalizer.php in vendor/
symfony/ serializer/ Normalizer/ AbstractObjectNormalizer.php - ConstraintViolationListNormalizer.php in vendor/
symfony/ serializer/ Normalizer/ ConstraintViolationListNormalizer.php - ObjectNormalizer.php in vendor/
symfony/ serializer/ Normalizer/ ObjectNormalizer.php - PropertyNormalizer.php in vendor/
symfony/ serializer/ Normalizer/ PropertyNormalizer.php
File
-
vendor/
symfony/ serializer/ NameConverter/ NameConverterInterface.php, line 19
Namespace
Symfony\Component\Serializer\NameConverterView source
interface NameConverterInterface {
/**
* Converts a property name to its normalized value.
*
* @param class-string|null $class
* @param string|null $format
* @param array<string, mixed> $context
*/
public function normalize(string $propertyName) : string;
/**
* Converts a property name to its denormalized value.
*
* @param class-string|null $class
* @param string|null $format
* @param array<string, mixed> $context
*/
public function denormalize(string $propertyName) : string;
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
NameConverterInterface::denormalize | public | function | Converts a property name to its denormalized value. | 3 |
NameConverterInterface::normalize | public | function | Converts a property name to its normalized value. | 3 |