<?php
namespace App\Entity;
use App\Repository\AdresseRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=AdresseRepository::class)
*/
class Adresse
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $lib_adresse;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $ligne_1;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $ligne_2;
/**
* @ORM\Column(type="string", length=20, nullable=true)
*/
private $code_postal;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $ville;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $pays;
/**
* @ORM\ManyToOne(targetEntity=Tiers::class, inversedBy="adresses")
* @ORM\JoinColumn(nullable=true)
*/
private $tiers;
/**
* @ORM\ManyToOne(targetEntity=Societe::class, inversedBy="adresses")
* @ORM\JoinColumn(nullable=true)
*/
private $societe;
public function getId(): ?int
{
return $this->id;
}
public function getLibAdresse(): ?string
{
return $this->lib_adresse;
}
public function setLibAdresse(string $lib_adresse): self
{
$this->lib_adresse = $lib_adresse;
return $this;
}
public function getLigne1(): ?string
{
return $this->ligne_1;
}
public function setLigne1(?string $ligne_1): self
{
$this->ligne_1 = $ligne_1;
return $this;
}
public function getLigne2(): ?string
{
return $this->ligne_2;
}
public function setLigne2(string $ligne_2): self
{
$this->ligne_2 = $ligne_2;
return $this;
}
public function getCodePostal(): ?string
{
return $this->code_postal;
}
public function setCodePostal(?string $code_postal): self
{
$this->code_postal = $code_postal;
return $this;
}
public function getVille(): ?string
{
return $this->ville;
}
public function setVille(?string $ville): self
{
$this->ville = $ville;
return $this;
}
public function getPays(): ?string
{
return $this->pays;
}
public function setPays(?string $pays): self
{
$this->pays = $pays;
return $this;
}
public function getTiers(): ?Tiers
{
return $this->tiers;
}
public function setTiers(?Tiers $tiers): self
{
$this->tiers = $tiers;
return $this;
}
public function getSociete(): ?Societe
{
return $this->societe;
}
public function setSociete(?Societe $societe): self
{
$this->societe = $societe;
return $this;
}
}