ErrorMessage.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. * Used to generate a Flex Error message.
  12. * part of the AmfphpFlexMessaging plugin
  13. *
  14. * @package Amfphp_Plugins_FlexMessaging
  15. * @author Ariel Sommeria-Klein
  16. */
  17. class AmfphpFlexMessaging_ErrorMessage {
  18. /**
  19. * correlation id. guid
  20. * @var string
  21. */
  22. public $correlationId;
  23. /**
  24. * fault code
  25. * @var float
  26. */
  27. public $faultCode;
  28. /**
  29. * fault detail
  30. * @var string
  31. */
  32. public $faultDetail;
  33. /**
  34. * fault string
  35. * @var string
  36. */
  37. public $faultString;
  38. /**
  39. * an object describing the cause. Whatever you need.
  40. * @var mixed
  41. */
  42. public $rootCause;
  43. /**
  44. * constructor
  45. * @param type $correlationId
  46. */
  47. public function __construct($correlationId) {
  48. $explicitTypeField = Amfphp_Core_Amf_Constants::FIELD_EXPLICIT_TYPE;
  49. $this->$explicitTypeField = AmfphpFlexMessaging::FLEX_TYPE_ERROR_MESSAGE;
  50. $this->correlationId = $correlationId;
  51. }
  52. }
  53. ?>