Documentation

CamelCaseToSnakeCaseNameConverter
in package
implements NameConverterInterface

CamelCase to Underscore name converter.

Tags
author

Kévin Dunglas dunglas@gmail.com

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

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
string

normalize()

Converts a property name to its normalized value.

public normalize(string $propertyName) : string
Parameters
$propertyName : string
Return values
string

        
On this page

Search results