Packet.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. * content holder for an Amf Packet.
  12. *
  13. * @package Amfphp_Core_Amf
  14. * @author Ariel Sommeria-klein
  15. */
  16. class Amfphp_Core_Amf_Packet {
  17. /**
  18. * The place to keep the headers data
  19. *
  20. * @var <array>
  21. */
  22. public $headers;
  23. /**
  24. * The place to keep the Message elements
  25. *
  26. * @var <array>
  27. */
  28. public $messages;
  29. /**
  30. * either 0 or 3. This is stored here when deserializing, because the serializer needs the info
  31. * @var <int>
  32. */
  33. public $amfVersion;
  34. /**
  35. * The constructor function for a new Amf object.
  36. *
  37. * All the constructor does is initialize the headers and Messages containers
  38. */
  39. public function __construct() {
  40. $this->headers = array();
  41. $this->messages = array();
  42. $this->amfVersion = Amfphp_Core_Amf_Constants::AMF0_ENCODING;
  43. }
  44. }
  45. ?>