Skip to content

Commit 1724b66

Browse files
committed
Added check_regions for pool configuration
1 parent 99c174b commit 1724b66

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/Configurations/Pool.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,16 @@ public function getMonitor():string
9090
return $this->configs['monitor'] ?? '';
9191
}
9292

93+
public function setCheckRegions(array $checkRegions)
94+
{
95+
$this->configs['check_regions'] = $checkRegions;
96+
}
97+
98+
public function getCheckRegions():array
99+
{
100+
return $this->configs['check_regions'] ?? [];
101+
}
102+
93103
public function setNotificationEmail(string $email)
94104
{
95105
if (filter_var($email, FILTER_VALIDATE_EMAIL) === false) {

src/Endpoints/Pools.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ public function getPoolConfiguration(string $accountID, string $poolID)
8383
$poolConfiguration->setMonitor($pool->monitor);
8484
$poolConfiguration->setNotificationEmail($pool->notification_email);
8585

86+
if (is_array($pool->check_regions)) {
87+
$poolConfiguration->setCheckRegions($pool->check_regions);
88+
}
89+
8690
return $poolConfiguration;
8791
}
8892

0 commit comments

Comments
 (0)