| Total Complexity | 9 |
| Total Lines | 63 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class OpenApi |
||
| 17 | { |
||
| 18 | public const VERSION = '3.0.2'; |
||
| 19 | |||
| 20 | private $openapi; |
||
| 21 | private $info; |
||
| 22 | private $servers; |
||
| 23 | private $paths; |
||
| 24 | private $components; |
||
| 25 | private $security; |
||
| 26 | private $tags; |
||
| 27 | private $externalDocs; |
||
| 28 | |||
| 29 | public function __construct(Info $info, array $servers = [], Paths $paths, Components $components = null, array $security = [], array $tags = [], $externalDocs = null) |
||
| 39 | } |
||
| 40 | |||
| 41 | public function getOpenapi(): string |
||
| 42 | { |
||
| 43 | return $this->openapi; |
||
| 44 | } |
||
| 45 | |||
| 46 | public function getInfo(): Info |
||
| 47 | { |
||
| 48 | return $this->info; |
||
| 49 | } |
||
| 50 | |||
| 51 | public function getServers(): array |
||
| 52 | { |
||
| 53 | return $this->servers; |
||
| 54 | } |
||
| 55 | |||
| 56 | public function getPaths(): Paths |
||
| 57 | { |
||
| 58 | return $this->paths; |
||
| 59 | } |
||
| 60 | |||
| 61 | public function getComponents(): Components |
||
| 62 | { |
||
| 63 | return $this->components; |
||
|
|
|||
| 64 | } |
||
| 65 | |||
| 66 | public function getSecurity(): array |
||
| 67 | { |
||
| 68 | return $this->security; |
||
| 69 | } |
||
| 70 | |||
| 71 | public function getTags(): array |
||
| 74 | } |
||
| 75 | |||
| 76 | public function getExternalDocs(): array |
||
| 77 | { |
||
| 78 | return $this->externalDocs; |
||
| 79 | } |
||
| 80 | } |
||
| 81 |