Total Complexity | 4 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
8 | class ChainIpLocationResolver implements IpLocationResolverInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var IpLocationResolverInterface[] |
||
12 | */ |
||
13 | private $resolvers; |
||
14 | |||
15 | 3 | public function __construct(IpLocationResolverInterface ...$resolvers) |
|
18 | } |
||
19 | |||
20 | /** |
||
21 | * @throws WrongIpException |
||
22 | */ |
||
23 | 3 | public function resolveIpLocation(string $ipAddress): array |
|
39 |