Header.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. * Amfphp_Core_Amf_Header is a data type that represents a single header passed via Amf
  12. *
  13. * @package Amfphp_Core_Amf
  14. */
  15. class Amfphp_Core_Amf_Header {
  16. /**
  17. * Name is the string name of the header key
  18. *
  19. * @var string
  20. */
  21. public $name;
  22. /**
  23. * Required is a boolean determining whether the remote system
  24. * must understand this header in order to operate. If the system
  25. * does not understand the header then it should not execute the
  26. * method call.
  27. *
  28. * @var boolean
  29. */
  30. public $required;
  31. /**
  32. * data is the actual object data of the header key
  33. *
  34. * @var mixed
  35. */
  36. public $data;
  37. /**
  38. * Amfphp_Core_Amf_Header is the Constructor function for the Amfphp_Core_Amf_Header data type.
  39. * @param string $name
  40. * @param boolean $required
  41. * @param mixed $data
  42. */
  43. public function __construct($name = '', $required = false, $data = null) {
  44. $this->name = $name;
  45. $this->required = $required;
  46. $this->data = $data;
  47. }
  48. }
  49. ?>