OperationalLogMessage.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. namespace App\Generated\V1_1\Messages\Pair;
  3. use Kamicloud\StubApi\Concerns\ValueHelper;
  4. use Kamicloud\StubApi\Http\Messages\Message;
  5. use Kamicloud\StubApi\Utils\Constants;
  6. class OperationalLogMessage extends Message
  7. {
  8. use ValueHelper;
  9. protected $stageId;
  10. protected $type;
  11. protected $content;
  12. protected $result;
  13. /**
  14. * @return int
  15. */
  16. public function getStageId()
  17. {
  18. return $this->stageId;
  19. }
  20. /**
  21. * @return string
  22. */
  23. public function getType()
  24. {
  25. return $this->type;
  26. }
  27. /**
  28. * @return string
  29. */
  30. public function getContent()
  31. {
  32. return $this->content;
  33. }
  34. public function requestRules()
  35. {
  36. return [
  37. ['stageId', 'stage_id', 'bail|integer', Constants::INTEGER, null],
  38. ['type', 'type', 'bail|string', Constants::STRING, null],
  39. ['content', 'content', 'bail|string', Constants::STRING, null],
  40. ];
  41. }
  42. public function responseRules()
  43. {
  44. return [
  45. ['result', 'result', 'bail', null, null],
  46. ];
  47. }
  48. public function setResponse($result)
  49. {
  50. $this->result = $result;
  51. }
  52. }