MessageInterface.php 665 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. declare(strict_types=1);
  3. namespace Laminas\Stdlib;
  4. use Traversable;
  5. interface MessageInterface
  6. {
  7. /**
  8. * Set metadata
  9. *
  10. * @param string|int|array|Traversable $spec
  11. * @param mixed $value
  12. */
  13. public function setMetadata($spec, $value = null);
  14. /**
  15. * Get metadata
  16. *
  17. * @param null|string|int $key
  18. * @return mixed
  19. */
  20. public function getMetadata($key = null);
  21. /**
  22. * Set content
  23. *
  24. * @param mixed $content
  25. * @return mixed
  26. */
  27. public function setContent($content);
  28. /**
  29. * Get content
  30. *
  31. * @return mixed
  32. */
  33. public function getContent();
  34. }