| 1 | <?php |
||
| 8 | class ArrayAdapter implements ThrottleStorageInterface |
||
| 9 | { |
||
| 10 | |||
| 11 | private $storage = []; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @inheritDoc |
||
| 15 | */ |
||
| 16 | public function hasCounter(string $storageKey): bool |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @inheritDoc |
||
| 23 | */ |
||
| 24 | public function getCounter(string $storageKey): Counter |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @inheritDoc |
||
| 31 | */ |
||
| 32 | public function saveCounter(string $storageKey, Counter $counter, float $ttl = null) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @inheritDoc |
||
| 39 | */ |
||
| 40 | public function deleteCounter(string $storageKey) |
||
| 44 | } |
||
| 45 |