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