src/Entity/LicensePrice.php line 13

  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Metadata\ApiResource;
  4. use App\Repository\LicensePriceRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\UX\Turbo\Attribute\Broadcast;
  7. #[ORM\Entity(repositoryClassLicensePriceRepository::class)]
  8. #[ApiResource]
  9. #[Broadcast]
  10. class LicensePrice
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\Column]
  17.     private ?float $start null;
  18.     #[ORM\Column]
  19.     private ?float $end null;
  20.     #[ORM\Column]
  21.     private ?float $price null;
  22.     #[ORM\ManyToOne(inversedBy'licensePrices')]
  23.     private ?CourseLicense $courseLicense null;
  24.     #[ORM\Column(length255)]
  25.     private ?string $discountType null;
  26.     public function getId(): ?int
  27.     {
  28.         return $this->id;
  29.     }
  30.     public function getStart(): ?float
  31.     {
  32.         return $this->start;
  33.     }
  34.     public function setStart(float $start): self
  35.     {
  36.         $this->start $start;
  37.         return $this;
  38.     }
  39.     public function getEnd(): ?float
  40.     {
  41.         return $this->end;
  42.     }
  43.     public function setEnd(float $end): self
  44.     {
  45.         $this->end $end;
  46.         return $this;
  47.     }
  48.     public function getPrice(): ?float
  49.     {
  50.         return $this->price;
  51.     }
  52.     public function setPrice(float $price): self
  53.     {
  54.         $this->price $price;
  55.         return $this;
  56.     }
  57.     public function getCourseLicense(): ?CourseLicense
  58.     {
  59.         return $this->courseLicense;
  60.     }
  61.     public function setCourseLicense(?CourseLicense $courseLicense): self
  62.     {
  63.         $this->courseLicense $courseLicense;
  64.         return $this;
  65.     }
  66.     public function getDiscountType(): ?string
  67.     {
  68.         return $this->discountType;
  69.     }
  70.     public function setDiscountType(string $discountType): self
  71.     {
  72.         $this->discountType $discountType;
  73.         return $this;
  74.     }
  75. }