src/Entity/Common/Adresse.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Common;
  3. use App\Entity\AbstractEntity;
  4. use App\Repository\Common\AdresseRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=AdresseRepository::class)
  8.  * @ORM\HasLifecycleCallbacks
  9.  */
  10. class Adresse extends AbstractEntity
  11. {
  12.     /**
  13.      * @ORM\Column(type="string", length=255, nullable=true)
  14.      */
  15.     private ?string $titre null;
  16.     /**
  17.      * @ORM\Column(type="string", length=255, nullable=true)
  18.      */
  19.     private ?string $ligne1 null;
  20.     /**
  21.      * @ORM\Column(type="string", length=255, nullable=true)
  22.      */
  23.     private ?string $ligne2 null;
  24.     /**
  25.      * @ORM\Column(type="boolean", nullable=true)
  26.      */
  27.     private ?bool $statut null;
  28.     /**
  29.      * @ORM\Column(type="string", length=255, nullable=true)
  30.      */
  31.     private ?string $codePostal null;
  32.     /**
  33.      * @ORM\Column(type="string", length=255, nullable=true)
  34.      */
  35.     private ?string $ville null;
  36.     /**
  37.      * @ORM\Column(type="string", length=255, nullable=true)
  38.      */
  39.     private ?string $pays null;
  40.     /**
  41.      * @ORM\Column(type="float", nullable=true)
  42.      */
  43.     private ?float $latitude null;
  44.     /**
  45.      * @ORM\Column(type="float", nullable=true)
  46.      */
  47.     private ?float $longitude null;
  48.     /**
  49.      * @ORM\Column(type="integer", nullable=true)
  50.      */
  51.     private ?int $numero null;
  52.     public function getNumero(): ?int
  53.     {
  54.         return $this->numero;
  55.     }
  56.     public function setNumero(?int $numero): Adresse
  57.     {
  58.         $this->numero $numero;
  59.         return $this;
  60.     }
  61.     public function getTitre(): ?string
  62.     {
  63.         return $this->titre;
  64.     }
  65.     public function setTitre(?string $titre): self
  66.     {
  67.         $this->titre $titre;
  68.         return $this;
  69.     }
  70.     public function getLigne1(): ?string
  71.     {
  72.         return $this->ligne1;
  73.     }
  74.     public function setLigne1(?string $ligne1): self
  75.     {
  76.         $this->ligne1 $ligne1;
  77.         return $this;
  78.     }
  79.     public function getLigne2(): ?string
  80.     {
  81.         return $this->ligne2;
  82.     }
  83.     public function setLigne2(?string $ligne2): self
  84.     {
  85.         $this->ligne2 $ligne2;
  86.         return $this;
  87.     }
  88.     public function isStatut(): ?bool
  89.     {
  90.         return $this->statut;
  91.     }
  92.     public function setStatut(?bool $statut): self
  93.     {
  94.         $this->statut $statut;
  95.         return $this;
  96.     }
  97.     public function getCodePostal(): ?string
  98.     {
  99.         return $this->codePostal;
  100.     }
  101.     public function setCodePostal(?string $codePostal): self
  102.     {
  103.         $this->codePostal $codePostal;
  104.         return $this;
  105.     }
  106.     public function getVille(): ?string
  107.     {
  108.         return $this->ville;
  109.     }
  110.     public function setVille(?string $ville): self
  111.     {
  112.         $this->ville $ville;
  113.         return $this;
  114.     }
  115.     public function getPays(): ?string
  116.     {
  117.         return $this->pays;
  118.     }
  119.     public function setPays(?string $pays): self
  120.     {
  121.         $this->pays $pays;
  122.         return $this;
  123.     }
  124.     public function getLatitude(): ?float
  125.     {
  126.         return $this->latitude;
  127.     }
  128.     public function setLatitude(?float $latitude): self
  129.     {
  130.         $this->latitude $latitude;
  131.         return $this;
  132.     }
  133.     public function getLongitude(): ?float
  134.     {
  135.         return $this->longitude;
  136.     }
  137.     public function setLongitude(?float $longitude): self
  138.     {
  139.         $this->longitude $longitude;
  140.         return $this;
  141.     }
  142.     public function getFullDesignation(): string
  143.     {
  144.         return $this->titre ' ' $this->ligne1 ' ' $this->ligne2 ' ' $this->codePostal ' ' $this->ville;
  145.     }
  146. }