src/Entity/TarifZone.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TarifZoneRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=TarifZoneRepository::class)
  7.  */
  8. class TarifZone
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=Zone::class, inversedBy="tarifZones")
  18.      * @ORM\JoinColumn(nullable=false)
  19.      */
  20.     private $zoneDepart;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity=Zone::class, inversedBy="tarifZones")
  23.      * @ORM\JoinColumn(nullable=false)
  24.      */
  25.     private $zoneArrive;
  26.     /**
  27.      * @ORM\Column(type="float")
  28.      */
  29.     private $tarif;
  30.     /**
  31.      * @ORM\ManyToOne(targetEntity=SocieteLivraison::class, inversedBy="tarifZones")
  32.      * @ORM\JoinColumn(nullable=false)
  33.      */
  34.     private $societeLivraison;
  35.     public function getId(): ?int
  36.     {
  37.         return $this->id;
  38.     }
  39.     public function getZoneDepart(): ?Zone
  40.     {
  41.         return $this->zoneDepart;
  42.     }
  43.     public function setZoneDepart(?Zone $zoneDepart): self
  44.     {
  45.         $this->zoneDepart $zoneDepart;
  46.         return $this;
  47.     }
  48.     public function getZoneArrive(): ?Zone
  49.     {
  50.         return $this->zoneArrive;
  51.     }
  52.     public function setZoneArrive(?Zone $zoneArrive): self
  53.     {
  54.         $this->zoneArrive $zoneArrive;
  55.         return $this;
  56.     }
  57.     public function getTarif(): ?float
  58.     {
  59.         return $this->tarif;
  60.     }
  61.     public function setTarif(float $tarif): self
  62.     {
  63.         $this->tarif $tarif;
  64.         return $this;
  65.     }
  66.     public function getSocieteLivraison(): ?SocieteLivraison
  67.     {
  68.         return $this->societeLivraison;
  69.     }
  70.     public function setSocieteLivraison(?SocieteLivraison $societeLivraison): self
  71.     {
  72.         $this->societeLivraison $societeLivraison;
  73.         return $this;
  74.     }
  75. }