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

Info   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 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 Info
17
{
18
    public $title;
19
    public $description;
20
    public $termsOfService;
21
    public $contact;
22
    public $license;
23
    public $version;
24
25
    public function __construct(string $title, string $version, string $description = '', string $termsOfService = null, Contact $contact = null, License $license = null)
26
    {
27
        $this->title = $title;
28
        $this->version = $version;
29
        $this->description = $description;
30
        $this->termsOfService = $termsOfService;
31
        $this->contact = $contact;
32
        $this->license = $license;
33
    }
34
}
35