Total Complexity | 4 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
10 | class ChainIpLocationResolver implements IpLocationResolverInterface |
||
11 | { |
||
12 | /** @var IpLocationResolverInterface[] */ |
||
13 | private $resolvers; |
||
14 | |||
15 | 3 | public function __construct(IpLocationResolverInterface ...$resolvers) |
|
16 | { |
||
17 | 3 | $this->resolvers = $resolvers; |
|
18 | } |
||
19 | |||
20 | /** |
||
21 | * @throws WrongIpException |
||
22 | */ |
||
23 | 3 | public function resolveIpLocation(string $ipAddress): Model\Location |
|
37 | } |
||
38 | } |
||
39 |