MessageInterface.php 924 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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;
  10. interface MessageInterface
  11. {
  12. /**
  13. * Set metadata
  14. *
  15. * @param string|int|array|\Traversable $spec
  16. * @param mixed $value
  17. */
  18. public function setMetadata($spec, $value = null);
  19. /**
  20. * Get metadata
  21. *
  22. * @param null|string|int $key
  23. * @return mixed
  24. */
  25. public function getMetadata($key = null);
  26. /**
  27. * Set content
  28. *
  29. * @param mixed $content
  30. * @return mixed
  31. */
  32. public function setContent($content);
  33. /**
  34. * Get content
  35. *
  36. * @return mixed
  37. */
  38. public function getContent();
  39. }