iDecodeStream.php 757 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace Luracast\Restler\Format;
  3. /**
  4. * Interface for creating formats that accept steams for decoding
  5. *
  6. * @category Framework
  7. * @package Restler
  8. * @subpackage format
  9. * @author R.Arul Kumaran <arul@luracast.com>
  10. * @copyright 2010 Luracast
  11. * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
  12. * @link http://luracast.com/products/restler/
  13. *
  14. */
  15. interface iDecodeStream
  16. {
  17. /**
  18. * Decode the given data stream
  19. *
  20. * @param string $stream A stream resource with data
  21. * sent from client to the api
  22. * in the given format.
  23. *
  24. * @return array associative array of the parsed data
  25. */
  26. public function decodeStream($stream);
  27. }