src/Entity/Ticketing.php line 9

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TicketingRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassTicketingRepository::class)]
  6. class Ticketing
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\ManyToOne(inversedBy'ticketings'fetch'EAGER')]
  13.     #[ORM\JoinColumn(nullablefalse)]
  14.     private ?User $customer null;
  15.     #[ORM\ManyToOne(inversedBy'ticketings'fetch'EAGER')]
  16.     #[ORM\JoinColumn(nullablefalse)]
  17.     private ?LocalEvent $localEvent null;
  18.     #[ORM\Column]
  19.     private ?int $quantity null;
  20.     #[ORM\Column]
  21.     private ?\DateTimeImmutable $createdAt null;
  22.     public function getId(): ?int
  23.     {
  24.         return $this->id;
  25.     }
  26.     public function getCustomer(): ?User
  27.     {
  28.         return $this->customer;
  29.     }
  30.     public function setCustomer(?User $customer): self
  31.     {
  32.         $this->customer $customer;
  33.         return $this;
  34.     }
  35.     public function getLocalEvent(): ?LocalEvent
  36.     {
  37.         return $this->localEvent;
  38.     }
  39.     public function setLocalEvent(?LocalEvent $localEvent): self
  40.     {
  41.         $this->localEvent $localEvent;
  42.         return $this;
  43.     }
  44.     public function getQuantity(): ?int
  45.     {
  46.         return $this->quantity;
  47.     }
  48.     public function setQuantity(int $quantity): self
  49.     {
  50.         $this->quantity $quantity;
  51.         return $this;
  52.     }
  53.     public function getCreatedAt(): ?\DateTimeImmutable
  54.     {
  55.         return $this->createdAt;
  56.     }
  57.     public function setCreatedAt(\DateTimeImmutable $createdAt): self
  58.     {
  59.         $this->createdAt $createdAt;
  60.         return $this;
  61.     }
  62. }