Total Complexity | 3 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | class SampleMiddleware implements MiddlewareInterface |
||
29 | { |
||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | public $content; |
||
34 | |||
35 | /** |
||
36 | * @var array |
||
37 | */ |
||
38 | public static $output = []; |
||
39 | |||
40 | /** |
||
41 | * SampleMiddleware constructor. |
||
42 | * |
||
43 | * @param null|string $content |
||
44 | */ |
||
45 | public function __construct(string $content = null) |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
||
63 |