UpdateNoticeByKeyMessage.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. namespace App\Generated\V1_1\Messages\Notice;
  3. use Kamicloud\StubApi\Concerns\ValueHelper;
  4. use Kamicloud\StubApi\Http\Messages\Message;
  5. use Kamicloud\StubApi\Utils\Constants;
  6. class UpdateNoticeByKeyMessage extends Message
  7. {
  8. use ValueHelper;
  9. protected $key;
  10. protected $isOpen;
  11. /**
  12. * 通知key
  13. * @return string
  14. */
  15. public function getKey()
  16. {
  17. return $this->key;
  18. }
  19. /**
  20. * 开关
  21. * @return boolean|null
  22. */
  23. public function getIsOpen()
  24. {
  25. return $this->isOpen;
  26. }
  27. /**
  28. * 开关
  29. * @return boolean|null
  30. */
  31. public function isIsOpen()
  32. {
  33. return $this->isOpen;
  34. }
  35. public function requestRules()
  36. {
  37. return [
  38. ['key', 'key', 'bail|string', Constants::STRING, null],
  39. ['isOpen', 'is_open', 'bail|nullable|boolean', Constants::BOOLEAN | Constants::OPTIONAL, null],
  40. ];
  41. }
  42. public function responseRules()
  43. {
  44. return [
  45. ];
  46. }
  47. public function setResponse()
  48. {
  49. }
  50. }