| Conditions | 1 |
| Paths | 1 |
| Total Lines | 5 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | 9 | public function callbackBefore(string $taskName): callable |
|
| 35 | { |
||
| 36 | return function () use ($taskName) { |
||
| 37 | 9 | \array_push($this->startTimeStack, $this->clock->microtime()); |
|
| 38 | 9 | $this->events->append(new TimerEvent(TimerEvent::TYPE_BEGIN, $taskName, $this->clock->microtime(), 0)); |
|
| 39 | 9 | }; |
|
| 58 |