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=50, nullable=true)
  50.      */
  51.     private $groupe;
  52.     /**
  53.      * @ORM\Column(type="string", length=25, nullable=true)
  54.      */
  55.     private $statut;
  56.     /**
  57.      * @ORM\Column(type="string", length=4, nullable=true)
  58.      */
  59.     private $utilisationAnnee;
  60.     public function getId(): ?int
  61.     {
  62.         return $this->id;
  63.     }
  64.     public function getCode(): ?string
  65.     {
  66.         return $this->code;
  67.     }
  68.     public function setCode(?string $code): self
  69.     {
  70.         $this->code $code;
  71.         return $this;
  72.     }
  73.     public function getUtilisationDate(): ?\DateTimeInterface
  74.     {
  75.         return $this->utilisationDate;
  76.     }
  77.     public function setUtilisationDate(?\DateTimeInterface $utilisationDate): self
  78.     {
  79.         $this->utilisationDate $utilisationDate;
  80.         return $this;
  81.     }
  82.     public function getEditionDate(): ?\DateTimeInterface
  83.     {
  84.         return $this->editionDate;
  85.     }
  86.     public function setEditionDate(?\DateTimeInterface $editionDate): self
  87.     {
  88.         $this->editionDate $editionDate;
  89.         return $this;
  90.     }
  91.     public function getCinema(): ?Cinema
  92.     {
  93.         return $this->cinema;
  94.     }
  95.     public function setCinema(?Cinema $cinema): self
  96.     {
  97.         $this->cinema $cinema;
  98.         return $this;
  99.     }
  100.     public function getBeneficiaire(): ?Beneficiaire
  101.     {
  102.         return $this->beneficiaire;
  103.     }
  104.     public function setBeneficiaire(?Beneficiaire $beneficiaire): self
  105.     {
  106.         $this->beneficiaire $beneficiaire;
  107.         return $this;
  108.     }
  109.     public function getUtilisationTrimestre(): ?int
  110.     {
  111.         return $this->utilisationTrimestre;
  112.     }
  113.     public function setUtilisationTrimestre(?int $utilisationTrimestre): self
  114.     {
  115.         $this->utilisationTrimestre $utilisationTrimestre;
  116.         return $this;
  117.     }
  118.     public function getDistributionDate(): ?\DateTimeInterface
  119.     {
  120.         return $this->distributionDate;
  121.     }
  122.     public function setDistributionDate(?\DateTimeInterface $distributionDate): self
  123.     {
  124.         $this->distributionDate $distributionDate;
  125.         return $this;
  126.     }
  127.     public function getDistributionBeneficiaire(): ?string
  128.     {
  129.         return $this->distributionBeneficiaire;
  130.     }
  131.     public function setDistributionBeneficiaire(?string $distributionBeneficiaire): self
  132.     {
  133.         $this->distributionBeneficiaire $distributionBeneficiaire;
  134.         return $this;
  135.     }
  136.     public function getGroupe(): ?string
  137.     {
  138.         return $this->groupe;
  139.     }
  140.     public function setGroupe(?string $groupe): self
  141.     {
  142.         $this->groupe $groupe;
  143.         return $this;
  144.     }
  145.     public function getStatut(): ?string
  146.     {
  147.         return $this->statut;
  148.     }
  149.     public function setStatut(?string $statut): self
  150.     {
  151.         $this->statut $statut;
  152.         return $this;
  153.     }
  154.     public function getUtilisationAnnee(): ?string
  155.     {
  156.         return $this->utilisationAnnee;
  157.     }
  158.     public function setUtilisationAnnee(?string $utilisationAnnee): self
  159.     {
  160.         $this->utilisationAnnee $utilisationAnnee;
  161.         return $this;
  162.     }
  163. }