Total Complexity | 4 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
9 | final class IpGeoBasedContext implements GeoContextInterface |
||
10 | { |
||
11 | /** @var IpGeolocalizationHelperInterface */ |
||
12 | private $ipGeolocalizationHelper; |
||
13 | |||
14 | public function __construct( |
||
15 | IpGeolocalizationHelperInterface $ipGeolocalizationHelper |
||
16 | ) { |
||
17 | $this->ipGeolocalizationHelper = $ipGeolocalizationHelper; |
||
18 | } |
||
19 | |||
20 | /** |
||
21 | * {@inheritdoc} |
||
22 | */ |
||
23 | public function getCountryCode(): ?string |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | public function getCityName(): ?string |
||
32 | { |
||
33 | return $this->ipGeolocalizationHelper->getCityName(); |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | public function getPostalCode(): ?string |
||
42 | } |
||
43 | } |
||
44 |