1 | <?php |
||
9 | class EcommerceCountry_VisitorCountryProviderCloudFlare extends Object implements EcommerceGEOipProvider |
||
|
|||
10 | { |
||
11 | |||
12 | /** |
||
13 | * |
||
14 | * @var string |
||
15 | */ |
||
16 | private static $forced_country_code = ""; |
||
17 | |||
18 | /** |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | private static $forced_ip_address = ""; |
||
23 | |||
24 | /** |
||
25 | * |
||
26 | * @return String (Country Code - e.g. NZ, AU, or AF) |
||
27 | */ |
||
28 | public function getCountry() |
||
35 | |||
36 | /** |
||
37 | * |
||
38 | * |
||
39 | * @return string |
||
40 | */ |
||
41 | public function getIP() |
||
48 | } |
||
49 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.