2022-06-26 19:08:40 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Entity;
|
|
|
|
|
|
|
|
use App\Repository\ContactRepository;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
|
|
|
|
trait AddressTrait
|
|
|
|
{
|
2022-12-19 18:35:10 +01:00
|
|
|
#[ORM\Column(type: 'string', length: 255)]
|
2022-06-26 19:08:40 +02:00
|
|
|
protected $address;
|
|
|
|
|
2022-12-19 18:35:10 +01:00
|
|
|
#[ORM\Column(type: 'string', length: 10)]
|
2022-06-26 19:08:40 +02:00
|
|
|
protected $zipCode;
|
|
|
|
|
2022-12-19 18:35:10 +01:00
|
|
|
#[ORM\Column(type: 'string', length: 100)]
|
2022-06-26 19:08:40 +02:00
|
|
|
protected $city;
|
|
|
|
|
|
|
|
public function getAddress(): ?string
|
|
|
|
{
|
|
|
|
return $this->address;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setAddress(string $address): self
|
|
|
|
{
|
|
|
|
$this->address = $address;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getZipCode(): ?string
|
|
|
|
{
|
|
|
|
return $this->zipCode;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setZipCode(string $zipCode): self
|
|
|
|
{
|
|
|
|
$this->zipCode = $zipCode;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getCity(): ?string
|
|
|
|
{
|
|
|
|
return $this->city;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setCity(string $city): self
|
|
|
|
{
|
|
|
|
$this->city = $city;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
}
|