File tree Expand file tree Collapse file tree 2 files changed +42
-12
lines changed Expand file tree Collapse file tree 2 files changed +42
-12
lines changed Original file line number Diff line number Diff line change 29
29
*/
30
30
class ApiCache
31
31
{
32
- private LoggerInterface $ logger ;
32
+ /**
33
+ * @var LoggerInterface
34
+ */
35
+ private $ logger ;
33
36
34
- private ApiClient $ apiClient ;
37
+ /**
38
+ * @var ApiClient
39
+ */
40
+ private $ apiClient ;
35
41
36
42
/** @var AbstractAdapter */
37
43
private $ adapter ;
38
44
39
- private Geolocation $ geolocation ;
45
+ /**
46
+ * @var Geolocation
47
+ */
48
+ private $ geolocation ;
40
49
41
50
/** @var bool */
42
- private ? bool $ liveMode = null ;
51
+ private $ liveMode = false ;
43
52
44
- private int $ cacheExpirationForCleanIp = 0 ;
53
+ /**
54
+ * @var int
55
+ */
56
+ private $ cacheExpirationForCleanIp = 0 ;
45
57
46
- private int $ cacheExpirationForBadIp = 0 ;
58
+ /**
59
+ * @var int
60
+ */
61
+ private $ cacheExpirationForBadIp = 0 ;
47
62
48
63
/** @var bool */
49
- private ? bool $ warmedUp = null ;
64
+ private $ warmedUp = false ;
50
65
51
- private string $ fallbackRemediation ;
66
+ /**
67
+ * @var string
68
+ */
69
+ private $ fallbackRemediation ;
52
70
53
- private array $ geolocConfig ;
71
+ /**
72
+ * @var array|null
73
+ */
74
+ private $ geolocConfig ;
54
75
55
- private array $ cacheKey = [];
76
+ /**
77
+ * @var array
78
+ */
79
+ private $ cacheKey = [];
56
80
57
81
/**
58
82
* @param LoggerInterface $logger The logger to use
Original file line number Diff line number Diff line change 23
23
*/
24
24
class Geolocation
25
25
{
26
- protected array $ maxmindCountry = [];
26
+ /**
27
+ * @var array
28
+ */
29
+ protected $ maxmindCountry = [];
27
30
28
- private array $ resultTemplate = ['country ' => '' , 'not_found ' => '' , 'error ' => '' ];
31
+ /**
32
+ * @var string[]
33
+ */
34
+ private $ resultTemplate = ['country ' => '' , 'not_found ' => '' , 'error ' => '' ];
29
35
30
36
/**
31
37
* Retrieve a country from a MaxMind database.
You can’t perform that action at this time.
0 commit comments