Completed
Pull Request — master (#3407)
by Antoine
07:35
created

OpenApi   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 17
c 1
b 0
f 0
dl 0
loc 22
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 1
1
<?php
2
3
/*
4
 * This file is part of the API Platform project.
5
 *
6
 * (c) Kévin Dunglas <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace ApiPlatform\Core\OpenApi;
15
16
class OpenApi
17
{
18
    public const VERSION = '3.0.2';
19
20
    private $info;
21
    private $servers;
22
    private $paths;
23
    private $components;
24
    private $security;
25
    private $tags;
26
    private $externalDocs;
27
28
    public function __construct(Info $info, array $servers = [], Paths $paths, Components $components = null, array $security = [], array $tags = [], $externalDocs = null)
29
    {
30
        $this->openapi = self::VERSION;
0 ignored issues
show
Bug Best Practice introduced by
The property openapi does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
31
        $this->info = $info;
32
        $this->servers = $servers;
33
        $this->paths = $paths;
34
        $this->components = $components;
35
        $this->security = $security;
36
        $this->tags = $tags;
37
        $this->externalDocs = $externalDocs;
38
    }
39
}
40