src/Entity/Main/ReservationDetails.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Main;
  3. use App\Repository\ReservationDetailsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. /**
  7.  * @ORM\Entity(repositoryClass=ReservationDetailsRepository::class)
  8.  */
  9. class ReservationDetails
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @var Reservation
  19.      * @ORM\ManyToOne(targetEntity="App\Entity\Main\Reservation", inversedBy="reservationDetails")
  20.      */
  21.     private $reservation;
  22.     /**
  23.      * @ORM\Column(type="string", length=255)
  24.      */
  25.     private $designation;
  26.     /**
  27.      * @ORM\Column(type="string", length=60, nullable=true)
  28.      */
  29.     private $code_activity;
  30.     /**
  31.      * @ORM\Column(type="date")
  32.      */
  33.     private $date;
  34.     /**
  35.      * @ORM\Column(type="time", nullable=true)
  36.      */
  37.     private $creneau;
  38.     /**
  39.      * @ORM\Column(type="integer", nullable=true)
  40.      */
  41.     private $quantity;
  42.     /**
  43.      * @ORM\Column(type="float", nullable=true)
  44.      */
  45.     private $puTTC;
  46.     /**
  47.      * @ORM\Column(type="float", nullable=true)
  48.      */
  49.     private $taux_TVA;
  50.     /**
  51.      * @ORM\Column(type="float", nullable=true)
  52.      */
  53.     private $total_ht;
  54.     /**
  55.      * @ORM\Column(type="float", nullable=true)
  56.      */
  57.     private $montant_tva;
  58.     /**
  59.      * @ORM\Column(type="float", nullable=true)
  60.      */
  61.     private $totalTTC;
  62.     
  63.     /**
  64.      * @ORM\ManyToOne(targetEntity="App\Entity\Main\ReservationDetails", inversedBy="childrens")
  65.      */
  66.     private $parent;    
  67.     
  68.     /**
  69.      * @ORM\OneToMany(targetEntity="App\Entity\Main\ReservationDetails", mappedBy="parent")
  70.      */
  71.     private $childrens;
  72.     public function __toString()
  73.     {
  74.         return (string) $this->designation;
  75.     }
  76.     public function getId(): ?int
  77.     {
  78.         return $this->id;
  79.     }
  80.     
  81.     public function getReservation()
  82.     {
  83.         return $this->reservation;
  84.     }
  85.     public function setReservation(\App\Entity\Main\Reservation $reservation): self
  86.     {
  87.         $this->reservation $reservation;
  88.         return $this;
  89.     }
  90.     public function getDesignation(): ?string
  91.     {
  92.         return $this->designation;
  93.     }
  94.     public function setDesignation(string $designation): self
  95.     {
  96.         $this->designation $designation;
  97.         return $this;
  98.     }
  99.     public function getCodeActivity(): ?string
  100.     {
  101.         return $this->code_activity;
  102.     }
  103.     public function setCodeActivity(?string $code_activity): self
  104.     {
  105.         $this->code_activity $code_activity;
  106.         return $this;
  107.     }
  108.     public function getDate(): ?\DateTimeInterface
  109.     {
  110.         return $this->date;
  111.     }
  112.     public function setDate(\DateTimeInterface $date): self
  113.     {
  114.         $this->date $date;
  115.         return $this;
  116.     }
  117.     public function getCreneau(): ?\DateTimeInterface
  118.     {
  119.         return $this->creneau;
  120.     }
  121.     public function setCreneau(?\DateTimeInterface $creneau): self
  122.     {
  123.         $this->creneau $creneau;
  124.         return $this;
  125.     }
  126.     public function getQuantity(): ?int
  127.     {
  128.         return $this->quantity;
  129.     }
  130.     public function setQuantity(?int $quantity): self
  131.     {
  132.         $this->quantity $quantity;
  133.         return $this;
  134.     }
  135.     public function getPuTTC(): ?float
  136.     {
  137.         return $this->puTTC;
  138.     }
  139.     public function setPuTTC(?float $puTTC): self
  140.     {
  141.         $this->puTTC $puTTC;
  142.         return $this;
  143.     }
  144.     public function getTauxTVA(): ?float
  145.     {
  146.         return $this->taux_TVA;
  147.     }
  148.     public function setTauxTVA(?float $taux_TVA): self
  149.     {
  150.         $this->taux_TVA $taux_TVA;
  151.         return $this;
  152.     }
  153.     public function getTotalHt(): ?float
  154.     {
  155.         return $this->total_ht;
  156.     }
  157.     public function setTotalHt(?float $total_ht): self
  158.     {
  159.         $this->total_ht $total_ht;
  160.         return $this;
  161.     }
  162.     public function getMontantTva(): ?float
  163.     {
  164.         return $this->montant_tva;
  165.     }
  166.     public function setMontantTva(?float $montant_tva): self
  167.     {
  168.         $this->montant_tva $montant_tva;
  169.         return $this;
  170.     }
  171.     public function getTotalTTC(): ?float
  172.     {
  173.         return $this->totalTTC;
  174.     }
  175.     public function setTotalTTC(?float $totalTTC): self
  176.     {
  177.         $this->totalTTC $totalTTC;
  178.         return $this;
  179.     }
  180.     
  181.     /**
  182.      * @return ReservationDetails
  183.      */
  184.     public function getParent(): ?ReservationDetails
  185.     {
  186.         return $this->parent;
  187.     }
  188.     public function setParent(?ReservationDetails $parent): self
  189.     {
  190.         $this->parent $parent;
  191.         return $this;
  192.     }
  193.     public function getChildrens()
  194.     {
  195.         return $this->childrens;
  196.     }
  197. }