src/Entity/PlanningReservation.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\PlanningReservationRepository")
  6.  * @ORM\Table(name="loc_planning_reservations")
  7.  */
  8. class PlanningReservation
  9. {
  10.     const RESOURCE_KEY 'plannings';
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="integer")
  19.      */
  20.     public $salle_id;
  21.     /**
  22.      * @ORM\Column(type="integer")
  23.      */
  24.     public $client_id;
  25.     /**
  26.      * @ORM\Column(type="integer")
  27.      */
  28.     public $tarif_id;
  29.     /**
  30.      * @ORM\Column(type="integer")
  31.      */
  32.     public $transaction_id;
  33.     /**
  34.      * @ORM\Column(type="date")
  35.      */
  36.     public $date_reservation;
  37.     /**
  38.      * @ORM\Column(type="date")
  39.      */
  40.     public $date_reservation_fin;
  41.     /**
  42.      * @ORM\Column(type="string", length=5)
  43.      */
  44.     public $heure_debut;
  45.     /**
  46.      * @ORM\Column(type="string", length=5)
  47.      */
  48.     public $heure_fin;
  49.     /**
  50.      * @ORM\Column(type="string", length=50)
  51.      */
  52.     public $motif;
  53.     /**
  54.      * @ORM\Column(type="integer", length=5)
  55.      */
  56.     public $statut_id;
  57.     /**
  58.      * @ORM\Column(type="datetime")
  59.      */
  60.     public $created;
  61.     /**
  62.      * @ORM\Column(type="datetime")
  63.      */
  64.     public $changed;
  65.     public function getId(): ?string
  66.     {
  67.         return $this->id;
  68.     }
  69.     public function getClientId(): ?int
  70.     {
  71.         return $this->client_id;
  72.     }
  73.     public function setClientId(int $client_id): self
  74.     {
  75.         $this->client_id $client_id;
  76.         return $this;
  77.     }
  78.     public function getTarifId(): ?int
  79.     {
  80.         return $this->tarif_id;
  81.     }
  82.     public function setTarifId(int $tarif_id): self
  83.     {
  84.         $this->tarif_id $tarif_id;
  85.         return $this;
  86.     }
  87.     public function getTransactionId(): ?int
  88.     {
  89.         return $this->transaction_id;
  90.     }
  91.     public function setTransactionId(int $transaction_id): self
  92.     {
  93.         $this->transaction_id $transaction_id;
  94.         return $this;
  95.     }
  96.     public function getDateReservation(): ?\DateTime
  97.     {
  98.         return $this->date_reservation;
  99.     }
  100.     public function setDateReservation(string $date_reservation): self
  101.     {
  102.         $date_reservation = new \DateTime($date_reservation);
  103.         $this->date_reservation $date_reservation;
  104.         return $this;
  105.     }
  106.     public function getDateReservationFin(): ?\DateTime
  107.     {
  108.         return $this->date_reservation_fin;
  109.     }
  110.     public function setDateReservationFin(string $date_reservation_fin): self
  111.     {
  112.         $date_reservation_fin = new \DateTime($date_reservation_fin);
  113.         $this->date_reservation_fin $date_reservation_fin;
  114.         return $this;
  115.     }
  116.     public function getHeureDebut(): ?string
  117.     {
  118.         return $this->heure_debut;
  119.     }
  120.     public function setHeureDebut(string $heure_debut): self
  121.     {
  122.         $this->heure_debut $heure_debut;
  123.         return $this;
  124.     }
  125.     public function getHeureFin(): ?string
  126.     {
  127.         return $this->heure_fin;
  128.     }
  129.     public function setHeureFin(string $heure_fin): self
  130.     {
  131.         $this->heure_fin $heure_fin;
  132.         return $this;
  133.     }
  134.     public function setMotif($motif): ?string
  135.     {
  136.         $this->motif $motif;
  137.         return $this;
  138.     }
  139.     public function getMotif(): ?string
  140.     {
  141.         return $this->motif;
  142.     }
  143.     public function setStatutId($statut_id): self
  144.     {
  145.         $this->statut_id $statut_id;
  146.         return $this;
  147.     }
  148.     public function getStatutId(): ?int
  149.     {
  150.         return $this->statut_id;
  151.     }
  152.     public function getChanged(): ?\DateTime
  153.     {
  154.         return $this->changed;
  155.     }
  156.     public function setChanged(): self
  157.     {
  158.         $this->changed = new \DateTime();
  159.         return $this;
  160.     }
  161.     public function getCreated(): ?\DateTime
  162.     {
  163.         return $this->created;
  164.     }
  165.     public function setCreated(): self
  166.     {
  167.         $this->created = new \DateTime();
  168.         return $this;
  169.     }
  170. }