MessageHeader.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * AMFHeader is a data type that represents a single header passed via amf
  4. *
  5. * AMFHeader encapsulates the different amf keys.
  6. *
  7. * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  8. * @copyright (c) 2003 amfphp.org
  9. * @package flashservices
  10. * @subpackage util
  11. * @version $Id: AMFHeader.php,v 1.4 2005/07/05 07:40:53 pmineault Exp $
  12. */
  13. class MessageHeader {
  14. /**
  15. * Name is the string name of the header key
  16. *
  17. * @var string
  18. */
  19. var $name;
  20. /**
  21. * Required is a boolean determining whether the remote system
  22. * must understand this header in order to operate. If the system
  23. * does not understand the header then it should not execute the
  24. * method call.
  25. *
  26. * @var boolean
  27. */
  28. var $required;
  29. /**
  30. * Value is the actual object value of the header key
  31. *
  32. * @var mixed
  33. */
  34. var $value;
  35. /**
  36. * AMFHeader is the Constructor function for the AMFHeader data type.
  37. */
  38. function MessageHeader($name = "", $required = false, $value = null) {
  39. $this->name = $name;
  40. $this->required = $required;
  41. $this->value = $value;
  42. }
  43. }
  44. ?>