License   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 27
rs 10
c 0
b 0
f 0
ccs 4
cts 4
cp 1
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace erasys\OpenApi\Spec\v3;
4
5
/**
6
 * License information for the exposed API.
7
 *
8
 * @see https://swagger.io/specification/#licenseObject
9
 */
10
class License extends AbstractObject implements ExtensibleInterface
11
{
12
    /**
13
     * REQUIRED. The license name used for the API.
14
     *
15
     *
16
     * @var string
17
     */
18
    public $name;
19
20
    /**
21
     * A URL to the license used for the API. MUST be in the format of a URL.
22
     *
23
     * @var string
24
     */
25
    public $url;
26
27
    /**
28
     * @param string      $name
29
     * @param string|null $url
30
     * @param array       $additionalProperties
31
     */
32 6
    public function __construct(string $name, string $url = null, array $additionalProperties = [])
33
    {
34 6
        parent::__construct($additionalProperties);
35 6
        $this->name = $name;
36 6
        $this->url  = $url;
37 6
    }
38
}
39