1 | <?php |
||
17 | final class RotatableJWKSet extends StorableJWKSet implements RotatableInterface |
||
18 | { |
||
19 | /** |
||
20 | * Interval at which keys should be rotated. |
||
21 | * |
||
22 | * @var int|null |
||
23 | */ |
||
24 | private $interval; |
||
25 | |||
26 | /** |
||
27 | * RotatableJWKSet constructor. |
||
28 | * |
||
29 | * @param string $filename |
||
30 | * @param array $parameters |
||
31 | * @param int $nb_keys |
||
32 | * @param int|null $interval |
||
33 | */ |
||
34 | public function __construct($filename, array $parameters, $nb_keys, $interval = null) |
||
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | public function getJWKSet() |
||
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | public function rotate() |
||
68 | |||
69 | /** |
||
70 | * Rotate key set if last modification time is due. |
||
71 | */ |
||
72 | private function rotateIfNeeded() |
||
84 | } |
||
85 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()
method in theSon
calls the wrong method in the parent class.