src/Entity/Guardian/GuardianPriceDiscount.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Guardian;
  3. use App\Entity\Guardian;
  4. use App\Repository\Guardian\GuardianPriceDiscountRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7. * @ORM\Entity(repositoryClass=GuardianPriceDiscountRepository::class)
  8. */
  9. class GuardianPriceDiscount
  10. {
  11. /**
  12. * @ORM\Id
  13. * @ORM\GeneratedValue
  14. * @ORM\Column(type="integer")
  15. */
  16. private $id;
  17. /**
  18. * @ORM\ManyToOne(targetEntity=Guardian::class, inversedBy="guardianPriceDiscounts")
  19. */
  20. private $guardian;
  21. /**
  22. * @ORM\Column(type="datetime", nullable=true)
  23. */
  24. private $dateFrom;
  25. /**
  26. * @ORM\Column(type="datetime", nullable=true)
  27. */
  28. private $dateTo;
  29. /**
  30. * @ORM\Column(type="float", nullable=true)
  31. */
  32. private $discountPercent;
  33. public function getId(): ?int
  34. {
  35. return $this->id;
  36. }
  37. public function getGuardian(): ?Guardian
  38. {
  39. return $this->guardian;
  40. }
  41. public function setGuardian(?Guardian $guardian): self
  42. {
  43. $this->guardian = $guardian;
  44. return $this;
  45. }
  46. public function getDateFrom(): ?\DateTimeInterface
  47. {
  48. return $this->dateFrom;
  49. }
  50. public function setDateFrom(?\DateTimeInterface $dateFrom): self
  51. {
  52. $this->dateFrom = $dateFrom;
  53. return $this;
  54. }
  55. public function getDateTo(): ?\DateTimeInterface
  56. {
  57. return $this->dateTo;
  58. }
  59. public function setDateTo(?\DateTimeInterface $dateTo): self
  60. {
  61. $this->dateTo = $dateTo;
  62. return $this;
  63. }
  64. public function getDiscountPercent(): ?float
  65. {
  66. return $this->discountPercent;
  67. }
  68. public function setDiscountPercent(?float $discountPercent): self
  69. {
  70. $this->discountPercent = $discountPercent;
  71. return $this;
  72. }
  73. }