CamelCaseToSnakeCaseNameConverter
in package
implements
NameConverterInterface
CamelCase to Underscore name converter.
Tags
Table of Contents
Interfaces
- NameConverterInterface
- Defines the interface for property name converters.
Properties
- $attributes : mixed
- $lowerCamelCase : mixed
Methods
- __construct() : mixed
- denormalize() : string
- Converts a property name to its denormalized value.
- normalize() : string
- Converts a property name to its normalized value.
Properties
$attributes
private
mixed
$attributes
$lowerCamelCase
private
mixed
$lowerCamelCase
Methods
__construct()
public
__construct([array<string|int, mixed>|null $attributes = null ][, bool $lowerCamelCase = true ]) : mixed
Parameters
- $attributes : array<string|int, mixed>|null = null
-
The list of attributes to rename or null for all attributes
- $lowerCamelCase : bool = true
-
Use lowerCamelCase style
denormalize()
Converts a property name to its denormalized value.
public
denormalize(string $propertyName) : string
Parameters
- $propertyName : string
Return values
stringnormalize()
Converts a property name to its normalized value.
public
normalize(string $propertyName) : string
Parameters
- $propertyName : string