1 | <?php |
||
21 | class StorableJWKSet implements StorableJWKSetInterface |
||
22 | { |
||
23 | /** |
||
24 | * @var \Jose\Object\JWKSetInterface |
||
25 | */ |
||
26 | protected $jwkset; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | protected $filename; |
||
32 | |||
33 | /** |
||
34 | * @var int |
||
35 | */ |
||
36 | protected $last_modification_time = null; |
||
37 | |||
38 | /** |
||
39 | * @var array |
||
40 | */ |
||
41 | protected $parameters; |
||
42 | |||
43 | /** |
||
44 | * @var array |
||
45 | */ |
||
46 | protected $nb_keys; |
||
47 | |||
48 | /** |
||
49 | * StorableJWKSet constructor. |
||
50 | * |
||
51 | * @param string $filename |
||
52 | * @param array $parameters |
||
53 | * @param int $nb_keys |
||
54 | */ |
||
55 | public function __construct($filename, array $parameters, $nb_keys) |
||
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | public function current() |
||
73 | |||
74 | /** |
||
75 | * {@inheritdoc} |
||
76 | */ |
||
77 | public function next() |
||
81 | |||
82 | /** |
||
83 | * {@inheritdoc} |
||
84 | */ |
||
85 | public function key() |
||
89 | |||
90 | /** |
||
91 | * {@inheritdoc} |
||
92 | */ |
||
93 | public function valid() |
||
97 | |||
98 | /** |
||
99 | * {@inheritdoc} |
||
100 | */ |
||
101 | public function rewind() |
||
105 | |||
106 | /** |
||
107 | * {@inheritdoc} |
||
108 | */ |
||
109 | public function offsetExists($offset) |
||
113 | |||
114 | /** |
||
115 | * {@inheritdoc} |
||
116 | */ |
||
117 | public function offsetGet($offset) |
||
121 | |||
122 | /** |
||
123 | * {@inheritdoc} |
||
124 | */ |
||
125 | public function offsetSet($offset, $value) |
||
129 | |||
130 | /** |
||
131 | * {@inheritdoc} |
||
132 | */ |
||
133 | public function offsetUnset($offset) |
||
137 | |||
138 | /** |
||
139 | * {@inheritdoc} |
||
140 | */ |
||
141 | public function getKey($index) |
||
145 | |||
146 | /** |
||
147 | * {@inheritdoc} |
||
148 | */ |
||
149 | public function hasKey($index) |
||
153 | |||
154 | /** |
||
155 | * {@inheritdoc} |
||
156 | */ |
||
157 | public function getKeys() |
||
161 | |||
162 | /** |
||
163 | * {@inheritdoc} |
||
164 | */ |
||
165 | public function addKey(JWKInterface $key) |
||
169 | |||
170 | /** |
||
171 | * {@inheritdoc} |
||
172 | */ |
||
173 | public function removeKey($index) |
||
177 | |||
178 | /** |
||
179 | * {@inheritdoc} |
||
180 | */ |
||
181 | public function countKeys() |
||
185 | |||
186 | /** |
||
187 | * {@inheritdoc} |
||
188 | */ |
||
189 | public function selectKey($type, $algorithm = null, array $restrictions = []) |
||
193 | |||
194 | /** |
||
195 | * {@inheritdoc} |
||
196 | */ |
||
197 | public function count() |
||
201 | |||
202 | /** |
||
203 | * @return string |
||
204 | */ |
||
205 | protected function getFilename() |
||
209 | |||
210 | /** |
||
211 | * {@inheritdoc} |
||
212 | */ |
||
213 | public function jsonSerialize() |
||
217 | |||
218 | /** |
||
219 | * @return \Jose\Object\JWKSetInterface |
||
220 | */ |
||
221 | protected function getJWKSet() |
||
227 | |||
228 | |||
229 | protected function loadJWKSet() |
||
245 | |||
246 | /** |
||
247 | * @return null|string |
||
248 | */ |
||
249 | protected function getFileContent() |
||
262 | |||
263 | /** |
||
264 | * @return bool |
||
265 | */ |
||
266 | protected function hasJWKSetBeenUpdated() |
||
275 | |||
276 | /** |
||
277 | * |
||
278 | */ |
||
279 | protected function createJWKSet() |
||
289 | |||
290 | /** |
||
291 | * @return \Jose\Object\JWKInterface |
||
292 | */ |
||
293 | protected function createJWK() |
||
300 | |||
301 | |||
302 | protected function save() |
||
306 | } |
||
307 |
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..