src/DTO/Scholar/TrainingDTO.php line 7

Open in your IDE?
  1. <?php
  2. namespace App\DTO\Scholar;
  3. use App\DTO\Channel\ChannelDTO;
  4. class TrainingDTO
  5. {
  6. public function __construct(
  7. private ChannelDTO $channel,
  8. private ?string $id = null,
  9. private ?string $name = null,
  10. private ?string $imageUrl = null,
  11. private ?int $time = null,
  12. private ?string $type = null,
  13. private ?string $diploma = null,
  14. private ?string $price = null,
  15. private ?int $freeLessonsCount = null,
  16. private ?int $cursusCount = null,
  17. private ?float $adviceAvg = null,
  18. )
  19. {
  20. }
  21. public function getId(): ?string
  22. {
  23. return $this->id;
  24. }
  25. public function setId(?string $id): static
  26. {
  27. $this->id = $id;
  28. return $this;
  29. }
  30. public function getChannel(): ChannelDTO
  31. {
  32. return $this->channel;
  33. }
  34. public function setChannel(ChannelDTO $channel): static
  35. {
  36. $this->channel = $channel;
  37. return $this;
  38. }
  39. public function getName(): ?string
  40. {
  41. return $this->name;
  42. }
  43. public function setName(?string $name): static
  44. {
  45. $this->name = $name;
  46. return $this;
  47. }
  48. public function getImageUrl(): ?string
  49. {
  50. return $this->imageUrl;
  51. }
  52. public function setImageUrl(?string $imageUrl): static
  53. {
  54. $this->imageUrl = $imageUrl;
  55. return $this;
  56. }
  57. public function getTime(): ?int
  58. {
  59. return $this->time;
  60. }
  61. public function setTime(?int $time): static
  62. {
  63. $this->time = $time;
  64. return $this;
  65. }
  66. public function getType(): ?string
  67. {
  68. return $this->type;
  69. }
  70. public function setType(?string $type): static
  71. {
  72. $this->type = $type;
  73. return $this;
  74. }
  75. public function getDiploma(): ?string
  76. {
  77. return $this->diploma;
  78. }
  79. public function setDiploma(?string $diploma): static
  80. {
  81. $this->diploma = $diploma;
  82. return $this;
  83. }
  84. public function getPrice(): ?string
  85. {
  86. return $this->price;
  87. }
  88. public function setPrice(?string $price): static
  89. {
  90. $this->price = $price;
  91. return $this;
  92. }
  93. public function getFreeLessonsCount(): ?int
  94. {
  95. return $this->freeLessonsCount;
  96. }
  97. public function setFreeLessonsCount(?int $freeLessonsCount): static
  98. {
  99. $this->freeLessonsCount = $freeLessonsCount;
  100. return $this;
  101. }
  102. public function getCursusCount(): ?int
  103. {
  104. return $this->cursusCount;
  105. }
  106. public function setCursusCount(?int $cursusCount): static
  107. {
  108. $this->cursusCount = $cursusCount;
  109. return $this;
  110. }
  111. public function getAdviceAvg(): ?float
  112. {
  113. return $this->adviceAvg;
  114. }
  115. public function setAdviceAvg(?float $adviceAvg): static
  116. {
  117. $this->adviceAvg = $adviceAvg;
  118. return $this;
  119. }
  120. }