class CamelCaseToSnakeCaseNameConverter implements NameConverterInterface

CamelCase to Underscore name converter.

Methods

__construct(array $attributes = null, bool $lowerCamelCase = true)

No description

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