class ChainEncoder

Encoder delegating the decoding to a chain of encoders.

@author Jordi Boggiano <j.boggiano@seld.be> @author Johannes M. Schmitt <schmittjoh@gmail.com> @author Lukas Kahwe Smith <smith@pooteeweet.org>

Hierarchy

Expanded class hierarchy of ChainEncoder

1 file declares its use of ChainEncoder

File

drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/Encoder/ChainEncoder.php, line 25

Namespace

Symfony\Component\Serializer\Encoder
View source

Members

Namesort descending Modifiers Type Description Overrides
ChainEncoder::$encoderByFormat protected property
ChainEncoder::$encoders protected property
ChainEncoder::encode final public function Encodes data into the given format Overrides EncoderInterface::encode
ChainEncoder::getEncoder private function Gets the encoder supporting the format.
ChainEncoder::needsNormalization public function Checks whether the normalization is needed for the given format.
ChainEncoder::supportsEncoding public function Checks whether the serializer can encode to given format Overrides EncoderInterface::supportsEncoding
ChainEncoder::__construct public function