src/Entity/Common/Adresse.php line 13

  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. #[ORM\Entity(repositoryClassAdresseRepository::class)]
  7. #[ORM\HasLifecycleCallbacks]
  8. class Adresse extends AbstractEntity
  9. {
  10.     #[ORM\Column(type'string'length255nullabletrue)]
  11.     private ?string $titre null;
  12.     #[ORM\Column(type'string'length255nullabletrue)]
  13.     private ?string $ligne1 null;
  14.     #[ORM\Column(type'string'length255nullabletrue)]
  15.     private ?string $ligne2 null;
  16.     #[ORM\Column(type'boolean'nullabletrue)]
  17.     private ?bool $statut null;
  18.     #[ORM\Column(type'string'length255nullabletrue)]
  19.     private ?string $codePostal null;
  20.     #[ORM\Column(type'string'length255nullabletrue)]
  21.     private ?string $ville null;
  22.     #[ORM\Column(type'string'length255nullabletrue)]
  23.     private ?string $pays null;
  24.     #[ORM\Column(type'float'nullabletrue)]
  25.     private ?float $latitude null;
  26.     #[ORM\Column(type'float'nullabletrue)]
  27.     private ?float $longitude null;
  28.     #[ORM\Column(type'integer'nullabletrue)]
  29.     private ?int $numero null;
  30.     public function getNumero(): ?int
  31.     {
  32.         return $this->numero;
  33.     }
  34.     public function setNumero(?int $numero): Adresse
  35.     {
  36.         $this->numero $numero;
  37.         return $this;
  38.     }
  39.     public function getTitre(): ?string
  40.     {
  41.         return $this->titre;
  42.     }
  43.     public function setTitre(?string $titre): self
  44.     {
  45.         $this->titre $titre;
  46.         return $this;
  47.     }
  48.     public function getLigne1(): ?string
  49.     {
  50.         return $this->ligne1;
  51.     }
  52.     public function setLigne1(?string $ligne1): self
  53.     {
  54.         $this->ligne1 $ligne1;
  55.         return $this;
  56.     }
  57.     public function getLigne2(): ?string
  58.     {
  59.         return $this->ligne2;
  60.     }
  61.     public function setLigne2(?string $ligne2): self
  62.     {
  63.         $this->ligne2 $ligne2;
  64.         return $this;
  65.     }
  66.     public function isStatut(): ?bool
  67.     {
  68.         return $this->statut;
  69.     }
  70.     public function setStatut(?bool $statut): self
  71.     {
  72.         $this->statut $statut;
  73.         return $this;
  74.     }
  75.     public function getCodePostal(): ?string
  76.     {
  77.         return $this->codePostal;
  78.     }
  79.     public function setCodePostal(?string $codePostal): self
  80.     {
  81.         $this->codePostal $codePostal;
  82.         return $this;
  83.     }
  84.     public function getVille(): ?string
  85.     {
  86.         return $this->ville;
  87.     }
  88.     public function setVille(?string $ville): self
  89.     {
  90.         $this->ville $ville;
  91.         return $this;
  92.     }
  93.     public function getPays(): ?string
  94.     {
  95.         return $this->pays;
  96.     }
  97.     public function setPays(?string $pays): self
  98.     {
  99.         $this->pays $pays;
  100.         return $this;
  101.     }
  102.     public function getLatitude(): ?float
  103.     {
  104.         return $this->latitude;
  105.     }
  106.     public function setLatitude(?float $latitude): self
  107.     {
  108.         $this->latitude $latitude;
  109.         return $this;
  110.     }
  111.     public function getLongitude(): ?float
  112.     {
  113.         return $this->longitude;
  114.     }
  115.     public function setLongitude(?float $longitude): self
  116.     {
  117.         $this->longitude $longitude;
  118.         return $this;
  119.     }
  120.     public function getFullDesignation(): string
  121.     {
  122.         return $this->titre ' ' $this->ligne1 ' ' $this->ligne2 ' ' $this->codePostal ' ' $this->ville;
  123.     }
  124. }