src/Entity/Parcours.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ParcoursRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=ParcoursRepository::class)
  7.  */
  8. class Parcours
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\OneToOne(targetEntity=IctusCommande::class, cascade={"persist", "remove"})
  18.      * @ORM\JoinColumn(nullable=false)
  19.      */
  20.     private $ictusCommande;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity=Livraison::class, inversedBy="parcours")
  23.      * @ORM\JoinColumn(nullable=false)
  24.      */
  25.     private $livraison;
  26.     /**
  27.      * @ORM\ManyToOne(targetEntity=Adresse::class, inversedBy="parcours")
  28.      * @ORM\JoinColumn(nullable=false)
  29.      */
  30.     private $adresse;
  31.     /**
  32.      * @ORM\Column(type="integer", nullable=true)
  33.      */
  34.     private $tarif;
  35.     /**
  36.      * @ORM\Column(type="integer", nullable=true)
  37.      */
  38.     private $etat;
  39.     public function getId(): ?int
  40.     {
  41.         return $this->id;
  42.     }
  43.     public function getIctusCommande(): ?IctusCommande
  44.     {
  45.         return $this->ictusCommande;
  46.     }
  47.     public function setIctusCommande(IctusCommande $ictusCommande): self
  48.     {
  49.         $this->ictusCommande $ictusCommande;
  50.         return $this;
  51.     }
  52.     public function getLivraison(): ?Livraison
  53.     {
  54.         return $this->livraison;
  55.     }
  56.     public function setLivraison(?Livraison $livraison): self
  57.     {
  58.         $this->livraison $livraison;
  59.         return $this;
  60.     }
  61.     public function getAdresse(): ?Adresse
  62.     {
  63.         return $this->adresse;
  64.     }
  65.     public function setAdresse(?Adresse $adresse): self
  66.     {
  67.         $this->adresse $adresse;
  68.         return $this;
  69.     }
  70.     public function getTarif(): ?int
  71.     {
  72.         return $this->tarif;
  73.     }
  74.     public function setTarif(?int $tarif): self
  75.     {
  76.         $this->tarif $tarif;
  77.         return $this;
  78.     }
  79.     public function getEtat(): ?int
  80.     {
  81.         return $this->etat;
  82.     }
  83.     public function setEtat(?int $etat): self
  84.     {
  85.         $this->etat $etat;
  86.         return $this;
  87.     }
  88. }