src/Entity/AddOn.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AddOnRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassAddOnRepository::class)]
  7. class AddOn
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255)]
  14.     private ?string $name null;
  15.     #[ORM\Column(typeTypes::TEXT)]
  16.     private ?string $description null;
  17.     #[ORM\Column]
  18.     private ?float $price null;
  19.     #[ORM\ManyToOne(inversedBy'addOns')]
  20.     private ?Tax $tax null;
  21.     #[ORM\ManyToOne(inversedBy'addOns')]
  22.     private ?CourseLicense $course null;
  23.     public function getId(): ?int
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getName(): ?string
  28.     {
  29.         return $this->name;
  30.     }
  31.     public function setName(string $name): self
  32.     {
  33.         $this->name $name;
  34.         return $this;
  35.     }
  36.     public function getDescription(): ?string
  37.     {
  38.         return $this->description;
  39.     }
  40.     public function setDescription(string $description): self
  41.     {
  42.         $this->description $description;
  43.         return $this;
  44.     }
  45.     public function getPrice(): ?float
  46.     {
  47.         return $this->price;
  48.     }
  49.     public function setPrice(float $price): self
  50.     {
  51.         $this->price $price;
  52.         return $this;
  53.     }
  54.     public function getTax(): ?Tax
  55.     {
  56.         return $this->tax;
  57.     }
  58.     public function setTax(?Tax $tax): self
  59.     {
  60.         $this->tax $tax;
  61.         return $this;
  62.     }
  63.     public function getCourse(): ?CourseLicense
  64.     {
  65.         return $this->course;
  66.     }
  67.     public function setCourse(?CourseLicense $course): self
  68.     {
  69.         $this->course $course;
  70.         return $this;
  71.     }
  72. }