1 | <?php namespace Arcanedev\GeoIP; |
||
12 | class Cache implements GeoIPCache |
||
13 | { |
||
14 | /* ------------------------------------------------------------------------------------------------ |
||
15 | | Properties |
||
16 | | ------------------------------------------------------------------------------------------------ |
||
17 | */ |
||
18 | /** @var \Illuminate\Contracts\Cache\Repository */ |
||
19 | protected $store; |
||
20 | |||
21 | /** @var array */ |
||
22 | protected $tags = []; |
||
23 | |||
24 | /** @var int */ |
||
25 | protected $expires = 30; |
||
26 | |||
27 | /* ------------------------------------------------------------------------------------------------ |
||
28 | | Constructor |
||
29 | | ------------------------------------------------------------------------------------------------ |
||
30 | */ |
||
31 | /** |
||
32 | * Cache constructor. |
||
33 | * |
||
34 | * @param \Illuminate\Contracts\Cache\Repository $store |
||
35 | * @param array $tags |
||
36 | * @param int $expires |
||
37 | */ |
||
38 | 18 | public function __construct(Store $store, array $tags, $expires = 30) |
|
44 | |||
45 | /* ------------------------------------------------------------------------------------------------ |
||
46 | | Getters & Setters |
||
47 | | ------------------------------------------------------------------------------------------------ |
||
48 | */ |
||
49 | /** |
||
50 | * Get the store instance. |
||
51 | * |
||
52 | * @return \Illuminate\Contracts\Cache\Repository |
||
53 | */ |
||
54 | 6 | private function store() |
|
58 | |||
59 | /* ------------------------------------------------------------------------------------------------ |
||
60 | | Main Functions |
||
61 | | ------------------------------------------------------------------------------------------------ |
||
62 | */ |
||
63 | /** |
||
64 | * Get an item from the cache. |
||
65 | * |
||
66 | * @param string $key |
||
67 | * |
||
68 | * @return \Arcanedev\GeoIP\Location|null |
||
69 | */ |
||
70 | 6 | public function get($key) |
|
74 | |||
75 | /** |
||
76 | * Set an item in cache. |
||
77 | * |
||
78 | * @param string $key |
||
79 | * @param array $location |
||
80 | */ |
||
81 | 6 | public function set($key, array $location) |
|
85 | |||
86 | /** |
||
87 | * Flush cache for tags. |
||
88 | */ |
||
89 | 1 | public function flush() |
|
93 | } |
||
94 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.