src/Entity/Main/Price.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Main;
  3. use App\Repository\PriceRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=PriceRepository::class)
  7.  */
  8. class Price
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=128, nullable=true)
  18.      */
  19.     private $designation;
  20.     /**
  21.      * @ORM\Column(type="string", length=128, nullable=true)
  22.      */
  23.     private $information;
  24.     /**
  25.      * @ORM\Column(type="string", length=128, nullable=true)
  26.      */
  27.     private $code;
  28.     /**
  29.      * @ORM\Column(type="time", nullable=true)
  30.      */
  31.     private $heure_debut;
  32.     /**
  33.      * @ORM\Column(type="time", nullable=true)
  34.      */
  35.     private $heure_fin;
  36.     /**
  37.      * @ORM\Column(type="array", nullable=true)
  38.      */
  39.     private $jours = [];
  40.     /**
  41.      * @ORM\Column(type="float", nullable=true)
  42.      */
  43.     private $price_ttc;
  44.     /**
  45.      * @ORM\Column(type="float", nullable=true)
  46.      */
  47.     private $taux_tva;
  48.     /**
  49.      * @ORM\Column(type="integer")
  50.      */
  51.     private $priority 1;
  52.     /**
  53.      * @ORM\Column(type="integer")
  54.      */
  55.     private $multi_game 1;
  56.     /**
  57.      * @ORM\ManyToOne(
  58.      *      targetEntity="App\Entity\Main\Forfait", 
  59.      *      inversedBy="prices"
  60.      * )
  61.      * @ORM\JoinColumn(nullable=false, onDelete="CASCADE")
  62.      */
  63.     private $forfait;
  64.     /**
  65.      * @ORM\ManyToOne(targetEntity="App\Entity\Main\GroupTarifs", inversedBy="prices")
  66.      */
  67.     private $groupby;
  68.     /**
  69.      * @ORM\Column(type="string", length=255, nullable=true)
  70.      */
  71.     private $url;
  72.     public function getId(): ?int
  73.     {
  74.         return $this->id;
  75.     }
  76.     public function getDesignation(): ?string
  77.     {
  78.         return $this->designation;
  79.     }
  80.     public function setDesignation(?string $designation): self
  81.     {
  82.         $this->designation $designation;
  83.         return $this;
  84.     }
  85.     public function getInformation(): ?string
  86.     {
  87.         return $this->information;
  88.     }
  89.     public function setInformation(?string $information): self
  90.     {
  91.         $this->information $information;
  92.         return $this;
  93.     }
  94.     public function getCode(): ?string
  95.     {
  96.         return $this->code;
  97.     }
  98.     public function setCode(?string $code): self
  99.     {
  100.         $this->code $code;
  101.         return $this;
  102.     }
  103.     public function getHeureDebut(): ?\DateTimeInterface
  104.     {
  105.         return $this->heure_debut;
  106.     }
  107.     public function setHeureDebut(?\DateTimeInterface $heure_debut): self
  108.     {
  109.         $this->heure_debut $heure_debut;
  110.         return $this;
  111.     }
  112.     public function getHeureFin(): ?\DateTimeInterface
  113.     {
  114.         return $this->heure_fin;
  115.     }
  116.     public function setHeureFin(?\DateTimeInterface $heure_fin): self
  117.     {
  118.         $this->heure_fin $heure_fin;
  119.         return $this;
  120.     }
  121.     public function getJours(): ?array
  122.     {
  123.         return $this->jours;
  124.     }
  125.     public function setJours(?array $jours): self
  126.     {
  127.         $this->jours $jours;
  128.         return $this;
  129.     }
  130.     public function getPriceTtc(): ?float
  131.     {
  132.         return $this->price_ttc;
  133.     }
  134.     public function setPriceTtc(?float $price_ttc): self
  135.     {
  136.         $this->price_ttc $price_ttc;
  137.         return $this;
  138.     }
  139.     public function getTauxTva(): ?float
  140.     {
  141.         return $this->taux_tva;
  142.     }
  143.     public function setTauxTva(?float $taux_tva): self
  144.     {
  145.         $this->taux_tva $taux_tva;
  146.         return $this;
  147.     }
  148.     public function getPriority(): ?int
  149.     {
  150.         return $this->priority;
  151.     }
  152.     public function setPriority(?int $priority): self
  153.     {
  154.         $this->priority $priority;
  155.         return $this;
  156.     }
  157.     public function getMultiGame(): ?int
  158.     {
  159.         return $this->multi_game;
  160.     }
  161.     public function setMultiGame(?int $multi_game): self
  162.     {
  163.         $this->multi_game $multi_game;
  164.         return $this;
  165.     }
  166.     public function getForfait(): ?Forfait
  167.     {
  168.         return $this->forfait;
  169.     }
  170.     public function setForfait(?Forfait $forfait): self
  171.     {
  172.         $this->forfait $forfait;
  173.         return $this;
  174.     }
  175.     public function getGroupby(): ?GroupTarifs
  176.     {
  177.         return $this->groupby;
  178.     }
  179.     public function setGroupby(?GroupTarifs $groupby): self
  180.     {
  181.         $this->groupby $groupby;
  182.         return $this;
  183.     }
  184.     public function getUrl(): ?string
  185.     {
  186.         return $this->url;
  187.     }
  188.     public function setUrl(?string $url): self
  189.     {
  190.         $this->url $url;
  191.         return $this;
  192.     }
  193. }