| 1 | <?php |
||
| 14 | class Stopwatch implements StopwatchInterface |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var SymfonyStopwatch |
||
| 18 | */ |
||
| 19 | private $delegate; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var StopwatchEvent[] |
||
| 23 | */ |
||
| 24 | private $events = []; |
||
| 25 | |||
| 26 | public function __construct(SymfonyStopwatch $delegate) |
||
| 30 | 4 | ||
| 31 | /** |
||
| 32 | * {@inheritdoc} |
||
| 33 | */ |
||
| 34 | public function start(string $name, ?string $category = null): void |
||
| 38 | 4 | ||
| 39 | /** |
||
| 40 | * {@inheritdoc} |
||
| 41 | */ |
||
| 42 | public function stop(string $name): void |
||
| 46 | 4 | ||
| 47 | /** |
||
| 48 | * @return StopwatchEvent[] |
||
| 49 | */ |
||
| 50 | public function getEvents(): array |
||
| 54 | } |
||
| 55 |