OpenidFeedMessage.php 1012 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. namespace App\Generated\V1\Messages\Homepage;
  3. use Kamicloud\StubApi\Concerns\ValueHelper;
  4. use Kamicloud\StubApi\Http\Messages\Message;
  5. use Kamicloud\StubApi\Utils\Constants;
  6. class OpenidFeedMessage extends Message
  7. {
  8. use ValueHelper;
  9. protected $openid;
  10. protected $take;
  11. protected $result;
  12. /**
  13. * @return string
  14. */
  15. public function getOpenid()
  16. {
  17. return $this->openid;
  18. }
  19. /**
  20. * @return int|null
  21. */
  22. public function getTake()
  23. {
  24. return $this->take;
  25. }
  26. public function requestRules()
  27. {
  28. return [
  29. ['openid', 'openid', 'bail|string', Constants::STRING, null],
  30. ['take', 'take', 'bail|nullable|integer', Constants::INTEGER | Constants::OPTIONAL, 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. }