addresses: filter out postal code introduced by user

This commit is contained in:
nobohan
2021-06-16 16:20:37 +02:00
parent 5b72eeb147
commit e2633a2a79
4 changed files with 71 additions and 5 deletions

View File

@@ -54,6 +54,13 @@ class PostalCode
*/
private $country;
/**
* @var integer
*
* @ORM\Column(name="origin", type="integer", nullable=true)
* @groups({"write", "read"})
*/
private $origin = 0;
/**
* Get id
@@ -65,6 +72,32 @@ class PostalCode
return $this->id;
}
/**
* Set origin
*
* @param int $origin
*
* @return PostalCode
*/
public function setOrigin($origin)
{
$this->origin = $origin;
return $this;
}
/**
* Get origin
*
* @return int
*/
public function getOrigin()
{
return $this->origin;
}
/**
* Set name
*