EncoderInterface.php 469 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Json;
  7. /**
  8. * JSON encoder
  9. *
  10. * @api
  11. *
  12. * @deprecated 101.0.0 @see \Magento\Framework\Serialize\Serializer\Json::serialize
  13. * @since 100.0.2
  14. */
  15. interface EncoderInterface
  16. {
  17. /**
  18. * Encode the mixed $data into the JSON format.
  19. *
  20. * @param mixed $data
  21. * @return string
  22. */
  23. public function encode($data);
  24. }