Add hub filter exceptions to supported areas #800
This commit is contained in:
parent
10c44fbe64
commit
b4057de938
1 changed files with 19 additions and 1 deletions
|
|
@ -39,6 +39,12 @@ class SupportedArea
|
|||
*/
|
||||
protected $coverage_area;
|
||||
|
||||
// prevent certain hub filters from being used
|
||||
/**
|
||||
* @ORM\Column(type="json", nullable=true)
|
||||
*/
|
||||
protected $hub_filter_exceptions;
|
||||
|
||||
/**
|
||||
* @ORM\ManyToOne(targetEntity="PriceTier", inversedBy="supported_areas")
|
||||
* @ORM\JoinColumn(name="price_tier_id", referencedColumnName="id", nullable=true)
|
||||
|
|
@ -50,6 +56,7 @@ class SupportedArea
|
|||
$this->date_create = new DateTime();
|
||||
|
||||
$this->price_tier = null;
|
||||
$this->hub_filter_exceptions = [];
|
||||
}
|
||||
|
||||
public function getID()
|
||||
|
|
@ -65,7 +72,7 @@ class SupportedArea
|
|||
|
||||
public function getDateCreate()
|
||||
{
|
||||
return $this->date_Create;
|
||||
return $this->date_create;
|
||||
}
|
||||
|
||||
public function setName($name)
|
||||
|
|
@ -101,5 +108,16 @@ class SupportedArea
|
|||
{
|
||||
return $this->price_tier;
|
||||
}
|
||||
|
||||
public function setHubFilterExceptions($exceptions)
|
||||
{
|
||||
$this->hub_filter_exceptions = $exceptions;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getHubFilterExceptions()
|
||||
{
|
||||
return $this->hub_filter_exceptions;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue