55 lines
951 B
PHP
55 lines
951 B
PHP
<?php
|
|
|
|
namespace App\Entity;
|
|
|
|
use App\Repository\ContactRepository;
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
trait AddressTrait
|
|
{
|
|
#[ORM\Column(type: 'string', length: 255)]
|
|
protected $address;
|
|
|
|
#[ORM\Column(type: 'string', length: 10)]
|
|
protected $zipCode;
|
|
|
|
#[ORM\Column(type: 'string', length: 100)]
|
|
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;
|
|
}
|
|
}
|