| 1 | <?php |
||
| 17 | final class RotatableJWKSet extends StorableJWKSet implements RotatableInterface |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * Interval at which keys should be rotated |
||
| 21 | * @var int|null |
||
| 22 | */ |
||
| 23 | private $interval; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * {@inheritdoc} |
||
| 27 | * |
||
| 28 | * @param int|null $interval Interval at which to rotate keys |
||
| 29 | */ |
||
| 30 | public function __construct($filename, array $parameters, $nb_keys, $interval = null) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * {@inheritdoc} |
||
| 39 | */ |
||
| 40 | public function getJWKSet() |
||
| 46 | |||
| 47 | /** |
||
| 48 | * {@inheritdoc} |
||
| 49 | */ |
||
| 50 | public function rotate() |
||
| 63 | |||
| 64 | /** |
||
| 65 | * Rotate key set if last modification time is due |
||
| 66 | */ |
||
| 67 | private function rotateIfNeeded() |
||
| 79 | } |
||
| 80 |
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 theSoncalls the wrong method in the parent class.