Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
web
/
vhosts
/
716cf56cb2.url-de-test.ws
/
htdocs
/
src
/
Entity
/
/srv/data/web/vhosts/716cf56cb2.url-de-test.ws/htdocs/src/Entity/Booking.php
<?php namespace App\Entity; use App\Repository\BookingRepository; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=BookingRepository::class) */ class Booking { public const STATUS_PAID = "PAYE"; public const STATUS_PENDING = "EN ATTENTE"; /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="integer") */ private $totalPrice; /** * @ORM\Column(type="integer") */ private $advance; /** * @ORM\Column(type="integer") */ private $rest; /** * @ORM\Column(type="datetime_immutable") */ private $checkin; /** * @ORM\Column(type="datetime_immutable") */ private $checkout; /** * @ORM\ManyToOne(targetEntity=Logement::class, inversedBy="bookings") */ private $logement; /** * @ORM\Column(type="string", length=255) */ private $logementName; /** * @ORM\Column(type="string", length=255) */ private $logementPrice; /** * @ORM\ManyToOne(targetEntity=User::class, inversedBy="bookings") */ private $user; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $userName; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $userPhone; /** * @ORM\ManyToOne(targetEntity=Saison::class, inversedBy="bookings") */ private $saison; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $saisonName; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $userEmail; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $statusAdvance; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $statusRest; /** * @ORM\Column(type="boolean") */ private $isImported; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $orderId; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $fundingSource; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $tokenRest; /** * @ORM\Column(type="boolean") */ private $isCancel; /** * @ORM\Column(type="integer", nullable=true) */ private $nbAdultes; /** * @ORM\Column(type="integer", nullable=true) */ private $nbEnfants; public function __construct() { $this->statusRest = self::STATUS_PENDING; $this->statusAdvance = self::STATUS_PENDING; $this->isImported = false; $this->isCancel = false; } public function getId(): ?int { return $this->id; } public function getTotalPrice(): ?int { return $this->totalPrice; } public function setTotalPrice(int $totalPrice): self { $this->totalPrice = $totalPrice; return $this; } public function getAdvance(): ?int { return $this->advance; } public function setAdvance(int $advance): self { $this->advance = $advance; return $this; } public function getRest(): ?int { return $this->rest; } public function setRest(int $rest): self { $this->rest = $rest; return $this; } public function getCheckin(): ?\DateTimeImmutable { return $this->checkin; } public function setCheckin(\DateTimeImmutable $checkin): self { $this->checkin = $checkin; return $this; } public function getCheckout(): ?\DateTimeImmutable { return $this->checkout; } public function setCheckout(\DateTimeImmutable $checkout): self { $this->checkout = $checkout; return $this; } public function getLogement(): ?Logement { return $this->logement; } public function setLogement(?Logement $logement): self { $this->logement = $logement; return $this; } public function getLogementName(): ?string { return $this->logementName; } public function setLogementName(string $logementName): self { $this->logementName = $logementName; return $this; } public function getLogementPrice(): ?string { return $this->logementPrice; } public function setLogementPrice(string $logementPrice): self { $this->logementPrice = $logementPrice; return $this; } public function getUser(): ?User { return $this->user; } public function setUser(?User $user): self { $this->user = $user; return $this; } public function getUserName(): ?string { return $this->userName; } public function setUserName(string $userName): self { $this->userName = $userName; return $this; } public function getUserPhone(): ?string { return $this->userPhone; } public function setUserPhone(string $userPhone): self { $this->userPhone = $userPhone; return $this; } public function getSaison(): ?Saison { return $this->saison; } public function setSaison(?Saison $saison): self { $this->saison = $saison; return $this; } public function getSaisonName(): ?string { return $this->saisonName; } public function setSaisonName(string $saisonName): self { $this->saisonName = $saisonName; return $this; } public function getUserEmail(): ?string { return $this->userEmail; } public function setUserEmail(string $userEmail): self { $this->userEmail = $userEmail; return $this; } public function getStatusAdvance(): ?string { return $this->statusAdvance; } public function setStatusAdvance(string $statusAdvance): self { $this->statusAdvance = $statusAdvance; return $this; } public function getStatusRest(): ?string { return $this->statusRest; } public function setStatusRest(string $statusRest): self { $this->statusRest = $statusRest; return $this; } public function isIsImported(): ?bool { return $this->isImported; } public function setIsImported(bool $isImported): self { $this->isImported = $isImported; return $this; } public function getOrderId(): ?string { return $this->orderId; } public function setOrderId(?string $orderId): self { $this->orderId = $orderId; return $this; } public function getFundingSource(): ?string { return $this->fundingSource; } public function setFundingSource(?string $fundingSource): self { $this->fundingSource = $fundingSource; return $this; } public function getTokenRest(): ?string { return $this->tokenRest; } public function setTokenRest(?string $tokenRest): self { $this->tokenRest = $tokenRest; return $this; } public function isIsCancel(): ?bool { return $this->isCancel; } public function setIsCancel(bool $isCancel): self { $this->isCancel = $isCancel; return $this; } public function getNbAdultes(): ?int { return $this->nbAdultes; } public function setNbAdultes(?int $nbAdultes): self { $this->nbAdultes = $nbAdultes; return $this; } public function getNbEnfants(): ?int { return $this->nbEnfants; } public function setNbEnfants(?int $nbEnfants): self { $this->nbEnfants = $nbEnfants; return $this; } }