LikeMeCheckMessage.php 787 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace App\Generated\V1_1\Messages\Share;
  3. use Kamicloud\StubApi\Concerns\ValueHelper;
  4. use Kamicloud\StubApi\Http\Messages\Message;
  5. use Kamicloud\StubApi\Utils\Constants;
  6. class LikeMeCheckMessage extends Message
  7. {
  8. use ValueHelper;
  9. protected $praiseId;
  10. protected $result;
  11. /**
  12. * @return int
  13. */
  14. public function getPraiseId()
  15. {
  16. return $this->praiseId;
  17. }
  18. public function requestRules()
  19. {
  20. return [
  21. ['praiseId', 'praise_id', 'bail|integer', Constants::INTEGER, null],
  22. ];
  23. }
  24. public function responseRules()
  25. {
  26. return [
  27. ['result', 'result', 'bail', null, null],
  28. ];
  29. }
  30. public function setResponse($result)
  31. {
  32. $this->result = $result;
  33. }
  34. }