src/Entity/Ticket.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TicketRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=TicketRepository::class)
  7.  */
  8. class Ticket
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=60, nullable=true)
  18.      */
  19.     private $code;
  20.     /**
  21.      * @ORM\Column(type="datetime", nullable=true)
  22.      */
  23.     private $editionDate;
  24.     /**
  25.      * @ORM\Column(type="datetime", nullable=true)
  26.      */
  27.     private $utilisationDate;
  28.     /**
  29.      * @ORM\ManyToOne(targetEntity=Cinema::class, inversedBy="tickets")
  30.      */
  31.     private $cinema;
  32.     /**
  33.      * @ORM\ManyToOne(targetEntity=Beneficiaire::class, inversedBy="tickets")
  34.      */
  35.     private $beneficiaire;
  36.     /**
  37.      * @ORM\Column(type="integer", nullable=true)
  38.      */
  39.     private $utilisationTrimestre;
  40.     /**
  41.      * @ORM\Column(type="date", nullable=true)
  42.      */
  43.     private $distributionDate;
  44.     /**
  45.      * @ORM\Column(type="string", length=255, nullable=true)
  46.      */
  47.     private $distributionBeneficiaire;
  48.     /**
  49.      * @ORM\Column(type="string", length=25, nullable=true)
  50.      */
  51.     private $statut;
  52.     public function getId(): ?int
  53.     {
  54.         return $this->id;
  55.     }
  56.     public function getCode(): ?string
  57.     {
  58.         return $this->code;
  59.     }
  60.     public function setCode(?string $code): self
  61.     {
  62.         $this->code $code;
  63.         return $this;
  64.     }
  65.     public function getUtilisationDate(): ?\DateTimeInterface
  66.     {
  67.         return $this->utilisationDate;
  68.     }
  69.     public function setUtilisationDate(?\DateTimeInterface $utilisationDate): self
  70.     {
  71.         $this->utilisationDate $utilisationDate;
  72.         return $this;
  73.     }
  74.     public function getEditionDate(): ?\DateTimeInterface
  75.     {
  76.         return $this->editionDate;
  77.     }
  78.     public function setEditionDate(?\DateTimeInterface $editionDate): self
  79.     {
  80.         $this->editionDate $editionDate;
  81.         return $this;
  82.     }
  83.     public function getCinema(): ?Cinema
  84.     {
  85.         return $this->cinema;
  86.     }
  87.     public function setCinema(?Cinema $cinema): self
  88.     {
  89.         $this->cinema $cinema;
  90.         return $this;
  91.     }
  92.     public function getBeneficiaire(): ?Beneficiaire
  93.     {
  94.         return $this->beneficiaire;
  95.     }
  96.     public function setBeneficiaire(?Beneficiaire $beneficiaire): self
  97.     {
  98.         $this->beneficiaire $beneficiaire;
  99.         return $this;
  100.     }
  101.     public function getUtilisationTrimestre(): ?int
  102.     {
  103.         return $this->utilisationTrimestre;
  104.     }
  105.     public function setUtilisationTrimestre(?int $utilisationTrimestre): self
  106.     {
  107.         $this->utilisationTrimestre $utilisationTrimestre;
  108.         return $this;
  109.     }
  110.     public function getDistributionDate(): ?\DateTimeInterface
  111.     {
  112.         return $this->distributionDate;
  113.     }
  114.     public function setDistributionDate(?\DateTimeInterface $distributionDate): self
  115.     {
  116.         $this->distributionDate $distributionDate;
  117.         return $this;
  118.     }
  119.     public function getDistributionBeneficiaire(): ?string
  120.     {
  121.         return $this->distributionBeneficiaire;
  122.     }
  123.     public function setDistributionBeneficiaire(?string $distributionBeneficiaire): self
  124.     {
  125.         $this->distributionBeneficiaire $distributionBeneficiaire;
  126.         return $this;
  127.     }
  128.     public function getStatut(): ?string
  129.     {
  130.         return $this->statut;
  131.     }
  132.     public function setStatut(?string $statut): self
  133.     {
  134.         $this->statut $statut;
  135.         return $this;
  136.     }
  137. }