api/symfony/Component/Serializer/Encoder/EncoderInterface.yaml

51 lines
1,015 B
YAML
Raw Permalink Normal View History

2024-09-26 09:03:21 +00:00
name: EncoderInterface
class_comment: null
dependencies:
- name: UnexpectedValueException
type: class
source: Symfony\Component\Serializer\Exception\UnexpectedValueException
properties: []
methods:
- name: encode
visibility: public
parameters:
- name: data
- name: format
- name: context
default: '[]'
comment: '# * @author Jordi Boggiano <j.boggiano@seld.be>
# */
# interface EncoderInterface
# {
# /**
# * Encodes data into the given format.
# *
# * @param mixed $data Data to encode
# * @param string $format Format name
# * @param array $context Options that normalizers/encoders have access to
# *
# * @throws UnexpectedValueException'
- name: supportsEncoding
visibility: public
parameters:
- name: format
comment: '# * Checks whether the serializer can encode to given format.
# *
# * @param string $format Format name'
traits:
- Symfony\Component\Serializer\Exception\UnexpectedValueException
interfaces: []