BannerDTO.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?php
  2. namespace App\Generated\V1\DTOs;
  3. use Kamicloud\StubApi\Concerns\ValueHelper;
  4. use Kamicloud\StubApi\DTOs\DTO;
  5. use Kamicloud\StubApi\Utils\Constants;
  6. class BannerDTO extends DTO
  7. {
  8. use ValueHelper;
  9. protected $isPraises;
  10. protected $charm;
  11. protected $count;
  12. protected $black;
  13. /**
  14. * @return int
  15. */
  16. public function getIsPraises()
  17. {
  18. return $this->isPraises;
  19. }
  20. /**
  21. * @return float
  22. */
  23. public function getCharm()
  24. {
  25. return $this->charm;
  26. }
  27. /**
  28. * @return int
  29. */
  30. public function getCount()
  31. {
  32. return $this->count;
  33. }
  34. /**
  35. * @return int
  36. */
  37. public function getBlack()
  38. {
  39. return $this->black;
  40. }
  41. public function setIsPraises($isPraises)
  42. {
  43. $this->isPraises = $isPraises;
  44. }
  45. public function setCharm($charm)
  46. {
  47. $this->charm = $charm;
  48. }
  49. public function setCount($count)
  50. {
  51. $this->count = $count;
  52. }
  53. public function setBlack($black)
  54. {
  55. $this->black = $black;
  56. }
  57. public function getAttributeMap()
  58. {
  59. return [
  60. ['isPraises', 'is_praises', 'bail|integer', Constants::INTEGER, null],
  61. ['charm', 'charm', 'bail|numeric', Constants::FLOAT, 'numeric'],
  62. ['count', 'count', 'bail|integer', Constants::INTEGER, null],
  63. ['black', 'black', 'bail|integer', Constants::INTEGER, null],
  64. ];
  65. }
  66. }