<?phpnamespace App\Entity\Core;use Doctrine\DBAL\Types\Types;use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;use Symfony\Component\Validator\Constraints as Assert;use Doctrine\ORM\Mapping as ORM;/** * Pages * * @ORM\Table("core_reservations") * @ORM\Entity(repositoryClass="App\Repository\Core\ReservationsRepository") * @ORM\HasLifecycleCallbacks() */class Reservations{ /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ protected $id; /** * @var string * * @ORM\Column(name="created_at", type="datetime", nullable=true) */ private $createdAt; /** * @var string * * @ORM\Column(name="updated_at", type="datetime", nullable=true) */ private $updatedAt; /** * @var string * * @ORM\Column(name="name", type="string", length=255, nullable=true) */ private $name; /** * @var string * * @ORM\Column(name="lastname", type="string", length=255, nullable=true) */ private $lastname; /** * @var string * * @ORM\Column(name="email", type="string", length=255, nullable=true) */ private $email; /** * @var string * * @ORM\Column(name="pricing", type="float", length=11, nullable=true) */ private $pricing; /** * @var string * * @ORM\Column(name="persons", type="integer", length=11, nullable=true) */ private $persons; /** * @var string * * @ORM\Column(name="message", type="string", length=255, nullable=true) */ private $message; /** * @ORM\Column(type="boolean", nullable=true) */ private $parking; /** * @ORM\Column(type="boolean", nullable=true) */ private $petitdej; /** * @ORM\Column(type="boolean", nullable=true) */ private $menage; /** * @ORM\Column(type="boolean", nullable=true) */ private $payed; /** * @var string * * @ORM\Column(name="start", type="date", nullable=true) */ private $start; /** * @var string * * @ORM\Column(name="end", type="date", nullable=true) */ private $end; /** * @var string * * @ORM\Column(name="locale", type="string", length=11, nullable=true) */ private $locale; /** * @var string * * @ORM\Column(name="stripe_identifiant", type="string", length=255, nullable=true) */ private $stripeIdentifiant; /** * @var string * * @ORM\Column(name="stripe_url", type="text", nullable=true) */ private $stripeUrl; /** * @var string * * @ORM\Column(name="stripe_bill", type="text", nullable=true) */ private $stripeBill; /** * @var string * * @ORM\Column(name="stripe_payed", type="boolean", nullable=true) */ private $stripePayed; /** * @var string * * @ORM\Column(name="status", type="string", length=255, nullable=true) */ private $status; /** * @ORM\PrePersist */ public function setCreatedAtValue(): void { $this->setCreatedAt(new \DateTime("now")); $this->setUpdatedAt(new \DateTime("now")); $this->setLocale("en"); } /** * @ORM\PreUpdate */ public function setUpdatedAtValue(): void { $this->setUpdatedAt(new \DateTime("now")); } public function __toString() { return $this->name; } public function getId(): ?int { return $this->id; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(?\DateTimeInterface $createdAt): static { $this->createdAt = $createdAt; return $this; } public function getUpdatedAt(): ?\DateTimeInterface { return $this->updatedAt; } public function setUpdatedAt(?\DateTimeInterface $updatedAt): static { $this->updatedAt = $updatedAt; return $this; } public function getName(): ?string { return $this->name; } public function setName(?string $name): static { $this->name = $name; return $this; } public function getLastname(): ?string { return $this->lastname; } public function setLastname(?string $lastname): static { $this->lastname = $lastname; return $this; } public function getEmail(): ?string { return $this->email; } public function setEmail(?string $email): static { $this->email = $email; return $this; } public function getPricing(): ?float { return $this->pricing; } public function setPricing(?float $pricing): static { $this->pricing = $pricing; return $this; } public function getMessage(): ?string { return $this->message; } public function setMessage(?string $message): static { $this->message = $message; return $this; } public function isParking(): ?bool { return $this->parking; } public function setParking(?bool $parking): static { $this->parking = $parking; return $this; } public function isPetitdej(): ?bool { return $this->petitdej; } public function setPetitdej(?bool $petitdej): static { $this->petitdej = $petitdej; return $this; } public function isMenage(): ?bool { return $this->menage; } public function setMenage(?bool $menage): static { $this->menage = $menage; return $this; } public function isPayed(): ?bool { return $this->payed; } public function setPayed(?bool $payed): static { $this->payed = $payed; return $this; } public function getStart(): ?\DateTimeInterface { return $this->start; } public function setStart(?\DateTimeInterface $start): static { $this->start = $start; return $this; } public function getEnd(): ?\DateTimeInterface { return $this->end; } public function setEnd(?\DateTimeInterface $end): static { $this->end = $end; return $this; } public function getLocale(): ?string { return $this->locale; } public function setLocale(?string $locale): static { $this->locale = $locale; return $this; } public function getStripeIdentifiant(): ?string { return $this->stripeIdentifiant; } public function setStripeIdentifiant(?string $stripeIdentifiant): static { $this->stripeIdentifiant = $stripeIdentifiant; return $this; } public function getStripeUrl(): ?string { return $this->stripeUrl; } public function setStripeUrl(?string $stripeUrl): static { $this->stripeUrl = $stripeUrl; return $this; } public function isStripePayed(): ?bool { return $this->stripePayed; } public function setStripePayed(?bool $stripePayed): static { $this->stripePayed = $stripePayed; return $this; } public function getStatus(): ?string { return $this->status; } public function setStatus(?string $status): static { $this->status = $status; return $this; } public function getPersons(): ?int { return $this->persons; } public function setPersons(?int $persons): static { $this->persons = $persons; return $this; } public function getStripeBill(): ?string { return $this->stripeBill; } public function setStripeBill(?string $stripeBill): static { $this->stripeBill = $stripeBill; return $this; }}