ConfirmCpMessage.php 988 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 ConfirmCpMessage extends Message
  7. {
  8. use ValueHelper;
  9. protected $pairId;
  10. protected $confirm;
  11. protected $result;
  12. /**
  13. * @return int
  14. */
  15. public function getPairId()
  16. {
  17. return $this->pairId;
  18. }
  19. /**
  20. * @return int
  21. */
  22. public function getConfirm()
  23. {
  24. return $this->confirm;
  25. }
  26. public function requestRules()
  27. {
  28. return [
  29. ['pairId', 'pair_id', 'bail|integer', Constants::INTEGER, null],
  30. ['confirm', 'confirm', 'bail|integer', Constants::INTEGER, null],
  31. ];
  32. }
  33. public function responseRules()
  34. {
  35. return [
  36. ['result', 'result', 'bail', null, null],
  37. ];
  38. }
  39. public function setResponse($result)
  40. {
  41. $this->result = $result;
  42. }
  43. }