src/Entity/LicensePrice.php line 13
<?phpnamespace App\Entity;use ApiPlatform\Metadata\ApiResource;use App\Repository\LicensePriceRepository;use Doctrine\ORM\Mapping as ORM;use Symfony\UX\Turbo\Attribute\Broadcast;#[ORM\Entity(repositoryClass: LicensePriceRepository::class)]#[ApiResource]#[Broadcast]class LicensePrice{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column]private ?float $start = null;#[ORM\Column]private ?float $end = null;#[ORM\Column]private ?float $price = null;#[ORM\ManyToOne(inversedBy: 'licensePrices')]private ?CourseLicense $courseLicense = null;#[ORM\Column(length: 255)]private ?string $discountType = null;public function getId(): ?int{return $this->id;}public function getStart(): ?float{return $this->start;}public function setStart(float $start): self{$this->start = $start;return $this;}public function getEnd(): ?float{return $this->end;}public function setEnd(float $end): self{$this->end = $end;return $this;}public function getPrice(): ?float{return $this->price;}public function setPrice(float $price): self{$this->price = $price;return $this;}public function getCourseLicense(): ?CourseLicense{return $this->courseLicense;}public function setCourseLicense(?CourseLicense $courseLicense): self{$this->courseLicense = $courseLicense;return $this;}public function getDiscountType(): ?string{return $this->discountType;}public function setDiscountType(string $discountType): self{$this->discountType = $discountType;return $this;}}