Symfony\Component\Serializer\Encoder\ChainEncoder
Encoder delegating the decoding to a chain of encoders.
- Author: Jordi Boggiano <j.boggiano@seld.be>
Synopsis
class ChainEncoder
implements
EncoderInterface
{
- // members
- protected array $encoders;
- protected array $encoderByFormat;
- // methods
- public void __construct()
- public final void encode()
- public void supportsEncoding()
- public Boolean needsNormalization()
- private EncoderInterface getEncoder()
Hierarchy
Members
protected
- $encoderByFormat
- $encoders
Methods
private
- getEncoder() — Gets the encoder supporting the format.
public
- __construct()
- encode() — {@inheritdoc}
- needsNormalization() — Checks whether the normalization is needed for the given format.
- supportsEncoding() — {@inheritdoc}