<?php
namespace App\Entity;
use App\Repository\PriceBundleRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: PriceBundleRepository::class)]
class PriceBundle
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column]
private ?int $persons = null;
#[ORM\Column]
private ?float $pricePerPerson = null;
#[ORM\ManyToOne(inversedBy: 'priceBundles', cascade:["remove"])]
private ?Course $course = null;
public function getId(): ?int
{
return $this->id;
}
public function getPersons(): ?int
{
return $this->persons;
}
public function setPersons(int $persons): static
{
$this->persons = $persons;
return $this;
}
public function getPricePerPerson(): ?float
{
return $this->pricePerPerson;
}
public function setPricePerPerson(float $pricePerPerson): static
{
$this->pricePerPerson = $pricePerPerson;
return $this;
}
public function getCourse(): ?Course
{
return $this->course;
}
public function setCourse(?Course $course): static
{
$this->course = $course;
return $this;
}
}