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() |
||
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | public function rotate() |
||
67 | |||
68 | /** |
||
69 | * Rotate key set if last modification time is due. |
||
70 | */ |
||
71 | private function rotateIfNeeded() |
||
83 | } |
||
84 |
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.