You are here

public function CamelCaseToSnakeCaseNameConverter::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/serializer/NameConverter/CamelCaseToSnakeCaseNameConverter.php \Symfony\Component\Serializer\NameConverter\CamelCaseToSnakeCaseNameConverter::__construct()

Parameters

null|array $attributes The list of attributes to rename or null for all attributes.:

bool $lowerCamelCase Use lowerCamelCase style.:

File

vendor/symfony/serializer/NameConverter/CamelCaseToSnakeCaseNameConverter.php, line 34

Class

CamelCaseToSnakeCaseNameConverter
CamelCase to Underscore name converter.

Namespace

Symfony\Component\Serializer\NameConverter

Code

public function __construct(array $attributes = null, $lowerCamelCase = true) {
  $this->attributes = $attributes;
  $this->lowerCamelCase = $lowerCamelCase;
}