Encodes data into the given format
mixed $data Data to encode:
string $format Format name:
scalar
Overrides EncoderInterface::encode
public final function encode($data, $format) { return $this->encoder ->encode($data, $format); }