PhpLegacyCompatibility.php 792 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * Zend Framework (http://framework.zend.com/)
  4. *
  5. * @link http://github.com/zendframework/zf2 for the canonical source repository
  6. * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
  7. * @license http://framework.zend.com/license/new-bsd New BSD License
  8. */
  9. namespace Zend\Stdlib\JsonSerializable;
  10. /**
  11. * Interface compatible with the built-in JsonSerializable interface
  12. *
  13. * JsonSerializable was introduced in PHP 5.4.0.
  14. *
  15. * @see http://php.net/manual/class.jsonserializable.php
  16. */
  17. interface PhpLegacyCompatibility
  18. {
  19. /**
  20. * Returns data which can be serialized by json_encode().
  21. *
  22. * @return mixed
  23. * @see http://php.net/manual/jsonserializable.jsonserialize.php
  24. */
  25. public function jsonSerialize();
  26. }