src/Entity/PriceBundle.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PriceBundleRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassPriceBundleRepository::class)]
  6. class PriceBundle
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column]
  13.     private ?int $persons null;
  14.     #[ORM\Column]
  15.     private ?float $pricePerPerson null;
  16.     #[ORM\ManyToOne(inversedBy'priceBundles'cascade:["remove"])]
  17.     private ?Course $course null;
  18.     public function getId(): ?int
  19.     {
  20.         return $this->id;
  21.     }
  22.     public function getPersons(): ?int
  23.     {
  24.         return $this->persons;
  25.     }
  26.     public function setPersons(int $persons): static
  27.     {
  28.         $this->persons $persons;
  29.         return $this;
  30.     }
  31.     public function getPricePerPerson(): ?float
  32.     {
  33.         return $this->pricePerPerson;
  34.     }
  35.     public function setPricePerPerson(float $pricePerPerson): static
  36.     {
  37.         $this->pricePerPerson $pricePerPerson;
  38.         return $this;
  39.     }
  40.     public function getCourse(): ?Course
  41.     {
  42.         return $this->course;
  43.     }
  44.     public function setCourse(?Course $course): static
  45.     {
  46.         $this->course $course;
  47.         return $this;
  48.     }
  49. }