ISerializer.php 591 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * This file is part of amfPHP
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to the license that is bundled
  8. * with this package in the file license.txt.
  9. */
  10. /**
  11. * interface for serializers.
  12. * @package Amfphp_Core_Common
  13. * @author Ariel Sommeria-klein
  14. */
  15. interface Amfphp_Core_Common_ISerializer {
  16. /**
  17. * Calling this executes the serialization. The return type is noted as a String, but is a binary stream. echo it to the output buffer
  18. * @param mixed $data the data to serialize.
  19. * @return String
  20. */
  21. public function serialize($data);
  22. }
  23. ?>