| Total Complexity | 4 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class PrefixReset extends PrefixKeys |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $collection; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param string $name |
||
| 21 | */ |
||
| 22 | public function __construct(KeyValueStore $cache, $name) |
||
| 23 | { |
||
| 24 | $this->cache = $cache; |
||
| 25 | $this->collection = $name; |
||
| 26 | parent::__construct($cache, $this->getPrefix()); |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * {@inheritdoc} |
||
| 31 | */ |
||
| 32 | public function flush() |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | protected function getPrefix() |
||
| 60 |