| 1 | <?php |
||
| 14 | class TokenLoader implements TokenLoaderInterface |
||
| 15 | { |
||
| 16 | use InMemoryLoaderTrait; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var Clock |
||
| 20 | */ |
||
| 21 | protected $clock; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Construct. |
||
| 25 | * |
||
| 26 | * @param string $collectionClass |
||
| 27 | * @param MajoraNormalizer $normalizer |
||
| 28 | * @param Clock $clock |
||
| 29 | */ |
||
| 30 | public function __construct($collectionClass, MajoraNormalizer $normalizer, Clock $clock) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @see TokenLoaderInterface::retrieveByHash() |
||
| 52 | */ |
||
| 53 | public function retrieveByHash($hash) |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @see TokenLoaderInterface::retrieveExpired() |
||
| 60 | */ |
||
| 61 | public function retrieveExpired(\DateTime $datetime = null) |
||
| 65 | } |
||
| 66 |