GetRecommendPairApplyContactsMessage.php 1010 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. use App\Generated\V1_1\DTOs\RecommendPairApplyContactDTO;
  7. class GetRecommendPairApplyContactsMessage extends Message
  8. {
  9. use ValueHelper;
  10. protected $recommendedContacts;
  11. protected $contacts;
  12. /**
  13. * @return int[]
  14. */
  15. public function getRecommendedContacts()
  16. {
  17. return $this->recommendedContacts;
  18. }
  19. public function requestRules()
  20. {
  21. return [
  22. ['recommendedContacts', 'recommended_contacts', 'bail|integer', Constants::INTEGER | Constants::ARRAY, null],
  23. ];
  24. }
  25. public function responseRules()
  26. {
  27. return [
  28. ['contacts', 'contacts', RecommendPairApplyContactDTO::class, Constants::MODEL | Constants::ARRAY, null],
  29. ];
  30. }
  31. public function setResponse($contacts)
  32. {
  33. $this->contacts = $contacts;
  34. }
  35. }