src/Entity/ZoneQuartier.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ZoneQuartierRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=ZoneQuartierRepository::class)
  7.  */
  8. class ZoneQuartier
  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="zoneQuartiers")
  18.      * @ORM\JoinColumn(nullable=false)
  19.      */
  20.     private $zone;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity=Quartier::class, inversedBy="zoneQuartiers")
  23.      * @ORM\JoinColumn(nullable=false)
  24.      */
  25.     private $quartier;
  26.     public function getId(): ?int
  27.     {
  28.         return $this->id;
  29.     }
  30.     public function getZone(): ?Zone
  31.     {
  32.         return $this->zone;
  33.     }
  34.     public function setZone(?Zone $zone): self
  35.     {
  36.         $this->zone $zone;
  37.         return $this;
  38.     }
  39.     public function getQuartier(): ?Quartier
  40.     {
  41.         return $this->quartier;
  42.     }
  43.     public function setQuartier(?Quartier $quartier): self
  44.     {
  45.         $this->quartier $quartier;
  46.         return $this;
  47.     }
  48. }