Total Complexity | 3 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class OpenApiSpecGenerated |
||
10 | { |
||
11 | private $openApiDoc; |
||
12 | |||
13 | /** |
||
14 | * @param Document $openApiDoc |
||
15 | */ |
||
16 | public function __construct(Document $openApiDoc) |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * @return Document |
||
23 | */ |
||
24 | public function getDocument(): Document |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * Replace the document. It's advisable to stop event propagation by returning false afterwards in your |
||
31 | * listener. |
||
32 | * |
||
33 | * @param Document $document |
||
34 | * @return OpenApiSpecGenerated |
||
35 | */ |
||
36 | public function overrideDocument(Document $document): self { |
||
41 |