Add hub filter exceptions to supported areas #800

This commit is contained in:
Ramon Gutierrez 2024-06-25 03:18:31 +08:00
parent 10c44fbe64
commit b4057de938

View file

@ -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;
}
}