Copied!

CamelCase to Underscore name converter.

CloneableInstantiable
Constants
public Symfony\Component\Serializer\NameConverter\CamelCaseToSnakeCaseNameConverter::REQUIRE_SNAKE_CASE_PROPERTIES = 'require_snake_case_properties'
 

Require all properties to be written in snake_case.

Methods
public __construct(?array $attributes = NULL, bool $lowerCamelCase = true)
 
  • param array|null $attributes The list of attributes to rename or null for all attributes
  • param bool $lowerCamelCase Use lowerCamelCase style
public denormalize(string $propertyName) : string
 
  • param class-string|null $class
  • param string|null $format
  • param array<string,mixed> $context
public normalize(string $propertyName) : string
 
  • param class-string|null $class
  • param string|null $format
  • param array<string,mixed> $context
Properties
private ?array $attributes
private bool $lowerCamelCase
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration