Added check_regions for pool configuration

This commit is contained in:
Martijn Smidt
2019-06-03 11:23:27 +02:00
parent 99c174bcb3
commit 1724b66147
2 changed files with 14 additions and 0 deletions

View File

@@ -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) {