1 | <?php |
||
18 | class StackPlugin implements Plugin |
||
19 | { |
||
20 | /** |
||
21 | * @var Collector |
||
22 | */ |
||
23 | private $collector; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | private $client; |
||
29 | |||
30 | /** |
||
31 | * @var Formatter |
||
32 | */ |
||
33 | private $formatter; |
||
34 | |||
35 | /** |
||
36 | * @param Collector $collector |
||
37 | * @param Formatter $formatter |
||
38 | * @param string $client |
||
39 | */ |
||
40 | 10 | public function __construct(Collector $collector, Formatter $formatter, $client) |
|
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | 7 | public function handleRequest(RequestInterface $request, callable $next, callable $first) |
|
76 | } |
||
77 |