Passed
Pull Request — master (#3407)
by Antoine
03:51
created

Info::getVersion()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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
    private $title;
19
    private $description;
20
    private $termsOfService;
21
    private $contact;
22
    private $license;
23
    private $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
    public function getTitle()
36
    {
37
        return $this->title;
38
    }
39
40
    public function getDescription()
41
    {
42
        return $this->description;
43
    }
44
45
    public function getTermsOfService()
46
    {
47
        return $this->termsOfService;
48
    }
49
50
    public function getContact()
51
    {
52
        return $this->contact;
53
    }
54
55
    public function getLicense()
56
    {
57
        return $this->license;
58
    }
59
60
    public function getVersion()
61
    {
62
        return $this->version;
63
    }
64
}
65