| Total Complexity | 4 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 26 | class OutputHelper |
||
| 27 | { |
||
| 28 | /** @var FastCache|null */ |
||
| 29 | private $cache; |
||
| 30 | |||
| 31 | /** @var string */ |
||
| 32 | private $key; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param mixed $key |
||
| 36 | */ |
||
| 37 | public function __construct(FastCache $cache, $key) |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Stops and saves the cache. |
||
| 47 | * |
||
| 48 | * @param callable $callback |
||
| 49 | * |
||
| 50 | * @throws InvalidArgumentException |
||
| 51 | */ |
||
| 52 | public function end(callable $callback = null, ?float $beta = null): void |
||
| 73 |