api/symfony/Component/Serializer/NameConverter/CamelCaseToSnakeCaseNameConverter.yaml
2024-09-26 02:03:21 -07:00

58 lines
1.9 KiB
YAML

name: CamelCaseToSnakeCaseNameConverter
class_comment: "# * CamelCase to Underscore name converter.\n# *\n# * @author K\xE9\
vin Dunglas <dunglas@gmail.com>\n# * @author Aur\xE9lien Pillevesse <aurelienpillevesse@hotmail.fr>"
dependencies:
- name: UnexpectedPropertyException
type: class
source: Symfony\Component\Serializer\Exception\UnexpectedPropertyException
properties: []
methods:
- name: __construct
visibility: public
parameters:
- name: attributes
default: 'null'
- name: lowerCamelCase
default: 'true'
comment: "# * CamelCase to Underscore name converter.\n# *\n# * @author K\xE9vin\
\ Dunglas <dunglas@gmail.com>\n# * @author Aur\xE9lien Pillevesse <aurelienpillevesse@hotmail.fr>\n\
# */\n# class CamelCaseToSnakeCaseNameConverter implements NameConverterInterface\n\
# {\n# /**\n# * Require all properties to be written in snake_case.\n# */\n# public\
\ const REQUIRE_SNAKE_CASE_PROPERTIES = 'require_snake_case_properties';\n# \n\
# /**\n# * @param array|null $attributes The list of attributes to rename\
\ or null for all attributes\n# * @param bool $lowerCamelCase Use lowerCamelCase\
\ style"
- name: normalize
visibility: public
parameters:
- name: propertyName/*
- name: class
default: 'null'
- name: format
default: 'null'
- name: context
default: '[] */'
comment: '# * @param class-string|null $class
# * @param string|null $format
# * @param array<string, mixed> $context'
- name: denormalize
visibility: public
parameters:
- name: propertyName/*
- name: class
default: 'null'
- name: format
default: 'null'
- name: context
default: '[] */'
comment: '# * @param class-string|null $class
# * @param string|null $format
# * @param array<string, mixed> $context'
traits:
- Symfony\Component\Serializer\Exception\UnexpectedPropertyException
interfaces:
- NameConverterInterface