Total Complexity | 2 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class ProfileMiddleware |
||
11 | { |
||
12 | /** |
||
13 | * @var \Symfony\Component\Stopwatch\Stopwatch |
||
14 | */ |
||
15 | private $stopwatch; |
||
16 | |||
17 | /** |
||
18 | * @param \Symfony\Component\Stopwatch\Stopwatch $stopwatch |
||
19 | */ |
||
20 | public function __construct(Stopwatch $stopwatch) |
||
21 | { |
||
22 | $this->stopwatch = $stopwatch; |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * Profiling each Request |
||
27 | * |
||
28 | * @return \Closure |
||
29 | */ |
||
30 | public function profile() : \Closure |
||
54 | } |
||
55 | ); |
||
60 |