1 | <?php |
||
19 | class RemoteCartStorage extends MultiFieldSession implements CartStorageInterface |
||
20 | { |
||
21 | const CACHE_DURATION = 60*60; // 1 hour |
||
22 | /** |
||
23 | * @var array |
||
24 | */ |
||
25 | protected $data = []; |
||
26 | /** |
||
27 | * @var array |
||
28 | */ |
||
29 | protected $oldData = []; |
||
30 | /** |
||
31 | * @var SettingsStorage |
||
32 | */ |
||
33 | private $settingsStorage; |
||
34 | /** |
||
35 | * @var CacheInterface |
||
36 | */ |
||
37 | private $cache; |
||
38 | /** |
||
39 | * @var User |
||
40 | */ |
||
41 | private $user; |
||
42 | |||
43 | public function __construct(User $user, SettingsStorage $settingsStorage, CacheInterface $cache, array $config = []) |
||
51 | |||
52 | protected function read() |
||
62 | |||
63 | protected function getCacheKey() |
||
67 | |||
68 | protected function getStorageKey() |
||
72 | |||
73 | protected function write() |
||
86 | |||
87 | /** |
||
88 | * @var bool |
||
89 | */ |
||
90 | private $_isActive; |
||
91 | public function getIsActive() |
||
95 | |||
96 | /** {@inheritdoc} */ |
||
97 | public function open() |
||
108 | |||
109 | /** {@inheritdoc} */ |
||
110 | public function offsetExists($offset) |
||
116 | |||
117 | /** {@inheritdoc} */ |
||
118 | public function offsetGet($offset) |
||
124 | |||
125 | /** {@inheritdoc} */ |
||
126 | public function offsetSet($offset, $item) |
||
132 | |||
133 | /** {@inheritdoc} */ |
||
134 | public function offsetUnset($offset) |
||
139 | |||
140 | /** |
||
141 | * @throws NotSupportedException |
||
142 | * @void |
||
143 | */ |
||
144 | private function throwShouldNotBeCalledException() |
||
148 | |||
149 | /** {@inheritdoc} */ |
||
150 | public function regenerateID($deleteOldSession = false) |
||
154 | |||
155 | /** {@inheritdoc} */ |
||
156 | public function readSession($id) |
||
160 | |||
161 | /** {@inheritdoc} */ |
||
162 | public function writeSession($id, $data) |
||
166 | |||
167 | /** {@inheritdoc} */ |
||
168 | public function destroySession($id) |
||
172 | |||
173 | /** {@inheritdoc} */ |
||
174 | public function gcSession($maxLifetime) |
||
178 | |||
179 | private function registerShutdownFunction() |
||
183 | } |
||
184 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..