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

54 lines
1.4 KiB
YAML

name: TranslatableNormalizer
class_comment: null
dependencies:
- name: InvalidArgumentException
type: class
source: Symfony\Component\Serializer\Exception\InvalidArgumentException
- name: NotNormalizableValueException
type: class
source: Symfony\Component\Serializer\Exception\NotNormalizableValueException
- name: TranslatableInterface
type: class
source: Symfony\Contracts\Translation\TranslatableInterface
- name: TranslatorInterface
type: class
source: Symfony\Contracts\Translation\TranslatorInterface
properties: []
methods:
- name: __construct
visibility: public
parameters:
- name: translator
- name: defaultContext
default: '[]'
comment: null
- name: normalize
visibility: public
parameters:
- name: object
- name: format
default: 'null'
- name: context
default: '[]'
comment: '# * @throws InvalidArgumentException'
- name: supportsNormalization
visibility: public
parameters:
- name: data
- name: format
default: 'null'
- name: context
default: '[]'
comment: null
- name: getSupportedTypes
visibility: public
parameters:
- name: format
comment: null
traits:
- Symfony\Component\Serializer\Exception\InvalidArgumentException
- Symfony\Component\Serializer\Exception\NotNormalizableValueException
- Symfony\Contracts\Translation\TranslatableInterface
- Symfony\Contracts\Translation\TranslatorInterface
interfaces:
- NormalizerInterface