Added check_regions for pool configuration
This commit is contained in:
@@ -90,6 +90,16 @@ class Pool implements Configurations
|
||||
return $this->configs['monitor'] ?? '';
|
||||
}
|
||||
|
||||
public function setCheckRegions(array $checkRegions)
|
||||
{
|
||||
$this->configs['check_regions'] = $checkRegions;
|
||||
}
|
||||
|
||||
public function getCheckRegions():array
|
||||
{
|
||||
return $this->configs['check_regions'] ?? [];
|
||||
}
|
||||
|
||||
public function setNotificationEmail(string $email)
|
||||
{
|
||||
if (filter_var($email, FILTER_VALIDATE_EMAIL) === false) {
|
||||
|
||||
@@ -83,6 +83,10 @@ class Pools implements API
|
||||
$poolConfiguration->setMonitor($pool->monitor);
|
||||
$poolConfiguration->setNotificationEmail($pool->notification_email);
|
||||
|
||||
if (is_array($pool->check_regions)) {
|
||||
$poolConfiguration->setCheckRegions($pool->check_regions);
|
||||
}
|
||||
|
||||
return $poolConfiguration;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user