Message.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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_Message is a data type that encapsulates all of the various properties a Message object can have.
  12. *
  13. * @package Amfphp_Core_Amf
  14. * @author Ariel Sommeria-klein
  15. */
  16. class Amfphp_Core_Amf_Message {
  17. /**
  18. * inthe case of a request:
  19. * parsed to a service name and a function name. supported separators for the targetUri are '.' and '/'
  20. * The service name can either be just the name of the class (TestService) or include a path(package/TestService)
  21. * example of full targetUri package/TestService/mirrorFunction
  22. *
  23. * in the case of a response:
  24. * the request responseUri + OK/KO
  25. * for example: /1/onResult or /1/onStatus
  26. *
  27. * @var String
  28. */
  29. public $targetUri = '';
  30. /**
  31. * in the case of a request:
  32. * operation name, for example /1
  33. *
  34. * in the case of a response:
  35. * undefined
  36. *
  37. * @var String
  38. */
  39. public $responseUri = '';
  40. /**
  41. * data
  42. * @var mixed
  43. */
  44. public $data;
  45. /**
  46. * constructor
  47. * @param String $targetUri
  48. * @param String $responseUri
  49. * @param mixed $data
  50. */
  51. public function __construct($targetUri = '', $responseUri = '', $data = null) {
  52. $this->targetUri = $targetUri;
  53. $this->responseUri = $responseUri;
  54. $this->data = $data;
  55. }
  56. }
  57. ?>