1 | <?php declare(strict_types=1); |
||
19 | abstract class PhpApiMiddleware implements MiddlewareInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var StreamFactory |
||
23 | */ |
||
24 | private $streamFactory; |
||
25 | |||
26 | /** |
||
27 | * @param string $string |
||
28 | * @return Stream |
||
29 | */ |
||
30 | protected function createStringStream(string $string): Stream |
||
37 | |||
38 | /** |
||
39 | * @param ServerRequestInterface $request |
||
40 | * @return Description |
||
41 | */ |
||
42 | protected function getDescription(ServerRequestInterface $request): Description |
||
46 | |||
47 | /** |
||
48 | * @param ServerRequestInterface $request |
||
49 | * @return Path |
||
50 | */ |
||
51 | protected function getPath(ServerRequestInterface $request): Path |
||
55 | |||
56 | /** |
||
57 | * @param ServerRequestInterface $request |
||
58 | * @return Operation |
||
59 | */ |
||
60 | protected function getOperation(ServerRequestInterface $request): Operation |
||
64 | |||
65 | /** |
||
66 | * @return StreamFactory |
||
67 | */ |
||
68 | protected function getStreamFactory(): StreamFactory |
||
76 | |||
77 | /** |
||
78 | * @param ServerRequestInterface $request |
||
79 | * @return Meta |
||
80 | */ |
||
81 | private function getMeta(ServerRequestInterface $request): Meta |
||
85 | } |
||
86 |