| Total Complexity | 5 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class SimpleProfiler implements ProfilerInterface |
||
| 10 | { |
||
| 11 | private array $tokens = []; |
||
| 12 | |||
| 13 | public function __construct(private LoggerInterface $logger) |
||
| 14 | { |
||
| 15 | } |
||
| 16 | |||
| 17 | public function begin(string $token, array $context = []): void |
||
| 22 | } |
||
| 23 | |||
| 24 | private function getKey(array $params): string |
||
| 25 | { |
||
| 26 | return json_encode($params); |
||
| 27 | } |
||
| 28 | |||
| 29 | public function end(string $token, array $context = []): void |
||
| 37 | } |
||
| 38 | } |
||
| 39 |