1 | <?php |
||
13 | class SwaggerSchemaValidationHandler |
||
14 | { |
||
15 | use Psr7AssertsTrait; |
||
16 | |||
17 | /** |
||
18 | * @var SchemaManager |
||
19 | */ |
||
20 | private $schemaManager; |
||
21 | |||
22 | /** |
||
23 | * @var bool |
||
24 | */ |
||
25 | private $skip; |
||
26 | /** |
||
27 | * @var Psr7RequestPrinterInterface |
||
28 | */ |
||
29 | private $psr7RequestPrinter; |
||
30 | /** |
||
31 | * @var Psr7ResponsePrinterInterface |
||
32 | */ |
||
33 | private $psr7ResponsePrinter; |
||
34 | |||
35 | /** |
||
36 | * @var string |
||
37 | */ |
||
38 | private $uri; |
||
39 | |||
40 | /** |
||
41 | * SwaggerSchemaValidationHandler constructor. |
||
42 | * |
||
43 | * @param string $uri |
||
44 | * @param Psr7RequestPrinterInterface|null $psr7RequestPrinter |
||
45 | * @param Psr7ResponsePrinterInterface|null $psr7ResponsePrinter |
||
46 | */ |
||
47 | 1 | public function __construct( |
|
64 | |||
65 | /** |
||
66 | * Disable (or enable) the middleware's testing temporarily. |
||
67 | * |
||
68 | * @param bool $skip |
||
69 | */ |
||
70 | public function setSkip($skip) |
||
74 | |||
75 | /** |
||
76 | * Guzzle Middleware. |
||
77 | * |
||
78 | * @param callable $handler |
||
79 | * |
||
80 | * @return \Closure |
||
81 | */ |
||
82 | public function __invoke(callable $handler) |
||
116 | } |
||
117 |