DecoderInterface.php 539 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 decoder
  9. *
  10. * @api
  11. *
  12. * @deprecated 101.0.0 @see \Magento\Framework\Serialize\Serializer\Json::unserialize
  13. * @since 100.0.2
  14. */
  15. interface DecoderInterface
  16. {
  17. /**
  18. * Decodes the given $data string which is encoded in the JSON format into a PHP type (array, string literal, etc.)
  19. *
  20. * @param string $data
  21. * @return mixed
  22. */
  23. public function decode($data);
  24. }