* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Serializer\Encoder; use Symfony\Component\Serializer\Exception\UnexpectedValueException; /** * Defines the interface of encoders. * * @author Jordi Boggiano */ 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 * * @return string|int|float|bool * * @throws UnexpectedValueException */ public function encode($data, $format, array $context = array()); /** * Checks whether the serializer can encode to given format. * * @param string $format Format name * * @return bool */ public function supportsEncoding($format); } __halt_compiler();----SIGNATURE:----AE39MH6qK/HtuZTD59g3DLCa9n3IrJMSIlWstC296C7B+KiAWwFQfxGUrZgfq2YSSY4ptItrSzwcGNxTGHHO1dIw2AOrQweXua6WEa52W1b490kwxYRDybLBzg6SkjoC2m8LhIBg3OX8Bf4NF1YRcL/7LdRb4Zfvs1QHWD+asGk1Oa3CR3UgiCgEhauIrpsalI/eg9jFZ+Wy1AjLOx5G0y5eVMK6z81Ge/CGX2ABq3Y0Dtb9vscvaPYgT0ycfglzvR2tcgATwoqQSi5K0Rx1CycysyEtZcrN6jTT8nPZtVb56ipurvU2NQP0rewMZLU8ugE7/5pqJGyHt9NgyXOnj4nxUtc+jhbhlRXiCbxOFDLotchpdZLrhDBwfA4y4cKj7M9DvCLHZJpsWHp2CfvOCGj4NtfcDm4zogFRQRnSKOAE6uE3D+6MAPrSofQnrJWhap0iLELodZSfy8587OFVaIL1db6FqzHHHSHSnrrQJrje9YflCaubXUOL0jSEj23pyNioe2NV1jGAqNVTdD5dPruRSsmcByqXRb4zdClzzARqcE4Mj4aDe/GlZ/jM1+gDAkzcVdkDIPedLwO/c2UvLK4lvKAyFr2JDGZenJyVYfI0cSgWXdaLJQAEfy3W+w9CKjd44Pi946ws8q2u+GLmF9fEmNcLQi5ZrwBc1uq5hbI=----ATTACHMENT:----MzUwNjcxNjU3NzI1NDE2NCA2ODkyMDQ2OTYxNjM1NjI0IDg3MTc2MjE4NzY5OTIxMjU=