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
doc_Symfony
2016-10-28 06:08:19
Comments
Leave a Comment

Please login to continue.