1 | <?php |
||
11 | class Profiler implements ProfilerContract |
||
12 | { |
||
13 | use DescriptionMaker; |
||
14 | |||
15 | /** |
||
16 | * @var \Clockwork\Request\Timeline |
||
17 | */ |
||
18 | private $timeline; |
||
19 | |||
20 | /** |
||
21 | * Public constructor. |
||
22 | * |
||
23 | * @param \Clockwork\Request\Timeline $timeline |
||
24 | */ |
||
25 | 1 | public function __construct(Timeline $timeline) |
|
29 | |||
30 | /** |
||
31 | * @param float $start |
||
32 | * @param float $end |
||
33 | * @param \Psr\Http\Message\RequestInterface $request |
||
34 | * @param \Psr\Http\Message\ResponseInterface $response |
||
35 | */ |
||
36 | 1 | public function add(float $start, float $end, RequestInterface $request, ResponseInterface $response = null): void |
|
43 | } |
||
44 |