Conditions | 4 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
55 | public function getEndpointUrl(string $region, string $urlType): string |
||
56 | { |
||
57 | foreach ($this->endpoints as $endpoint) { |
||
58 | if ($endpoint->supportsRegion($region) && $endpoint->supportsUrlType($urlType)) { |
||
59 | return $endpoint->getUrl($urlType); |
||
60 | } |
||
61 | } |
||
62 | |||
63 | return ""; |
||
64 | } |
||
65 | } |
||
66 |