src/Entity/Coordonnescircuit.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CoordonnescircuitRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=CoordonnescircuitRepository::class)
  9.  */
  10. class Coordonnescircuit
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\ManyToOne(targetEntity=Villes::class, inversedBy="coordonnescircuits")
  20.      * @ORM\JoinColumn(nullable=false)
  21.      */
  22.     private $ville;
  23.     /**
  24.      * @ORM\ManyToOne(targetEntity=Pays::class, inversedBy="coordonnescircuits")
  25.      * @ORM\JoinColumn(nullable=false)
  26.      */
  27.     private $pays;
  28.     /**
  29.      * @ORM\ManyToOne(targetEntity=Circuit::class, inversedBy="coordonnescircuits")
  30.      * @ORM\JoinColumn(nullable=false)
  31.      */
  32.     private $circuit;
  33.     /**
  34.      * @ORM\Column(type="string", length=255, nullable=true)
  35.      */
  36.     private $nom;
  37.     /**
  38.      * @ORM\Column(type="string", length=255, nullable=true)
  39.      */
  40.     private $prenom;
  41.     /**
  42.      * @ORM\Column(type="string", length=255, nullable=true)
  43.      */
  44.     private $email;
  45.     /**
  46.      * @ORM\Column(type="string", length=255, nullable=true)
  47.      */
  48.     private $mobile;
  49.     /**
  50.      * @ORM\Column(type="string", length=255, nullable=true)
  51.      */
  52.     private $civilite;
  53.     /**
  54.      * @ORM\Column(type="string", length=255, nullable=true)
  55.      */
  56.     private $cin;
  57.     /**
  58.      * @ORM\Column(type="string", length=255, nullable=true)
  59.      */
  60.     private $addresse;
  61.     /**
  62.      * @ORM\Column(type="string", length=255, nullable=true)
  63.      */
  64.     private $cp;
  65.     /**
  66.      * @ORM\Column(type="integer", nullable=true)
  67.      */
  68.     private $nbad;
  69.     /**
  70.      * @ORM\Column(type="integer", nullable=true)
  71.      */
  72.     private $nbenf;
  73.     /**
  74.      * @ORM\Column(type="integer", nullable=true)
  75.      */
  76.     private $nbbebe;
  77.     /**
  78.      * @ORM\OneToMany(targetEntity=Reservationcircuit::class, mappedBy="coordonnee", orphanRemoval=true)
  79.      */
  80.     private $reservationcircuits;
  81.     public function __construct()
  82.     {
  83.         $this->reservationcircuits = new ArrayCollection();
  84.     }
  85.     public function getId(): ?int
  86.     {
  87.         return $this->id;
  88.     }
  89.     public function getVille(): ?Villes
  90.     {
  91.         return $this->ville;
  92.     }
  93.     public function setVille(?Villes $ville): self
  94.     {
  95.         $this->ville $ville;
  96.         return $this;
  97.     }
  98.     public function getPays(): ?Pays
  99.     {
  100.         return $this->pays;
  101.     }
  102.     public function setPays(?Pays $pays): self
  103.     {
  104.         $this->pays $pays;
  105.         return $this;
  106.     }
  107.     public function getCircuit(): ?Circuit
  108.     {
  109.         return $this->circuit;
  110.     }
  111.     public function setCircuit(?Circuit $circuit): self
  112.     {
  113.         $this->circuit $circuit;
  114.         return $this;
  115.     }
  116.     public function getNom(): ?string
  117.     {
  118.         return $this->nom;
  119.     }
  120.     public function setNom(?string $nom): self
  121.     {
  122.         $this->nom $nom;
  123.         return $this;
  124.     }
  125.     public function getPrenom(): ?string
  126.     {
  127.         return $this->prenom;
  128.     }
  129.     public function setPrenom(?string $prenom): self
  130.     {
  131.         $this->prenom $prenom;
  132.         return $this;
  133.     }
  134.     public function getEmail(): ?string
  135.     {
  136.         return $this->email;
  137.     }
  138.     public function setEmail(?string $email): self
  139.     {
  140.         $this->email $email;
  141.         return $this;
  142.     }
  143.     public function getMobile(): ?string
  144.     {
  145.         return $this->mobile;
  146.     }
  147.     public function setMobile(?string $mobile): self
  148.     {
  149.         $this->mobile $mobile;
  150.         return $this;
  151.     }
  152.     public function getCivilite(): ?string
  153.     {
  154.         return $this->civilite;
  155.     }
  156.     public function setCivilite(?string $civilite): self
  157.     {
  158.         $this->civilite $civilite;
  159.         return $this;
  160.     }
  161.     public function getCin(): ?string
  162.     {
  163.         return $this->cin;
  164.     }
  165.     public function setCin(?string $cin): self
  166.     {
  167.         $this->cin $cin;
  168.         return $this;
  169.     }
  170.     public function getAddresse(): ?string
  171.     {
  172.         return $this->addresse;
  173.     }
  174.     public function setAddresse(?string $addresse): self
  175.     {
  176.         $this->addresse $addresse;
  177.         return $this;
  178.     }
  179.     public function getCp(): ?string
  180.     {
  181.         return $this->cp;
  182.     }
  183.     public function setCp(?string $cp): self
  184.     {
  185.         $this->cp $cp;
  186.         return $this;
  187.     }
  188.     public function getNbad(): ?int
  189.     {
  190.         return $this->nbad;
  191.     }
  192.     public function setNbad(?int $nbad): self
  193.     {
  194.         $this->nbad $nbad;
  195.         return $this;
  196.     }
  197.     public function getNbenf(): ?int
  198.     {
  199.         return $this->nbenf;
  200.     }
  201.     public function setNbenf(?int $nbenf): self
  202.     {
  203.         $this->nbenf $nbenf;
  204.         return $this;
  205.     }
  206.     public function getNbbebe(): ?int
  207.     {
  208.         return $this->nbbebe;
  209.     }
  210.     public function setNbbebe(?int $nbbebe): self
  211.     {
  212.         $this->nbbebe $nbbebe;
  213.         return $this;
  214.     }
  215.     /**
  216.      * @return Collection<int, Reservationcircuit>
  217.      */
  218.     public function getReservationcircuits(): Collection
  219.     {
  220.         return $this->reservationcircuits;
  221.     }
  222.     public function addReservationcircuit(Reservationcircuit $reservationcircuit): self
  223.     {
  224.         if (!$this->reservationcircuits->contains($reservationcircuit)) {
  225.             $this->reservationcircuits[] = $reservationcircuit;
  226.             $reservationcircuit->setCoordonnee($this);
  227.         }
  228.         return $this;
  229.     }
  230.     public function removeReservationcircuit(Reservationcircuit $reservationcircuit): self
  231.     {
  232.         if ($this->reservationcircuits->removeElement($reservationcircuit)) {
  233.             // set the owning side to null (unless already changed)
  234.             if ($reservationcircuit->getCoordonnee() === $this) {
  235.                 $reservationcircuit->setCoordonnee(null);
  236.             }
  237.         }
  238.         return $this;
  239.     }
  240. }