<?phpnamespace App\Entity;use App\Repository\AppFeeRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=AppFeeRepository::class) */class AppFee{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="float") */ private $value; /** * @ORM\ManyToOne(targetEntity=Command::class, inversedBy="appFees") */ private $command; /** * @ORM\ManyToOne(targetEntity=Location::class, inversedBy="appFees") */ private $location; /** * @ORM\Column(type="datetime_immutable") */ private $created_at; /** * @ORM\Column(type="boolean") */ private $paid; /** * @ORM\ManyToOne(targetEntity=Reservation::class, inversedBy="appFees") */ private $reservation; public function __construct() { $this->created_at = new \DateTimeImmutable(); } public function getId(): ?int { return $this->id; } public function getValue(): ?float { return $this->value; } public function setValue(float $value): self { $this->value = $value; return $this; } public function getCommand(): ?Command { return $this->command; } public function setCommand(?Command $command): self { $this->command = $command; return $this; } public function getLocation(): ?Location { return $this->location; } public function setLocation(?Location $location): self { $this->location = $location; return $this; } public function getCreatedAt(): ?\DateTimeImmutable { return $this->created_at; } public function setCreatedAt(\DateTimeImmutable $created_at): self { $this->created_at = $created_at; return $this; } public function isPaid(): ?bool { return $this->paid; } public function setPaid(bool $paid): self { $this->paid = $paid; return $this; } public function getReservation(): ?Reservation { return $this->reservation; } public function setReservation(?Reservation $reservation): self { $this->reservation = $reservation; return $this; }}