CamelCaseToSnakeCaseNameConverter
class CamelCaseToSnakeCaseNameConverter implements NameConverterInterface
CamelCase to Underscore name converter.
Methods
| __construct(array $attributes = null, bool $lowerCamelCase = true) | ||
| string | normalize(string $propertyName) Converts a property name to its normalized value. | |
| string | denormalize(string $propertyName) Converts a property name to its denormalized value. |
Details
__construct(array $attributes = null, bool $lowerCamelCase = true)
Parameters
| array | $attributes | The list of attributes to rename or null for all attributes |
| bool | $lowerCamelCase | Use lowerCamelCase style |
string normalize(string $propertyName)
Converts a property name to its normalized value.
Parameters
| string | $propertyName |
Return Value
| string |
string denormalize(string $propertyName)
Converts a property name to its denormalized value.
Parameters
| string | $propertyName |
Return Value
| string |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Serializer/NameConverter/CamelCaseToSnakeCaseNameConverter.html