Decoder.php 514 B

1234567891011121314151617181920212223
  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. * @deprecated 101.0.0 @see \Magento\Framework\Serialize\Serializer\Json::unserialize
  9. */
  10. class Decoder implements DecoderInterface
  11. {
  12. /**
  13. * Decodes the given $data string which is encoded in the JSON format.
  14. *
  15. * @param string $data
  16. * @return mixed
  17. */
  18. public function decode($data)
  19. {
  20. return \Zend_Json::decode($data);
  21. }
  22. }