Completed
Pull Request — master (#3407)
by Antoine
06:51 queued 02:47
created

SecurityScheme::getIn()   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 SecurityScheme
17
{
18
    private $type;
19
    private $description;
20
    private $name;
21
    private $in;
22
    private $scheme;
23
    private $bearerFormat;
24
    private $flows;
25
    private $openIdConnectUrl;
26
27
    public function __construct(string $type = null, string $description = '', string $name = null, string $in = null, string $scheme = null, string $bearerFormat = null, OAuthFlows $flows = null, string $openIdConnectUrl = null)
28
    {
29
        $this->type = $type;
30
        $this->description = $description;
31
        $this->name = $name;
32
        $this->in = $in;
33
        $this->scheme = $scheme;
34
        $this->bearerFormat = $bearerFormat;
35
        $this->flows = $flows;
36
        $this->openIdConnectUrl = $openIdConnectUrl;
37
    }
38
39
    public function getType()
40
    {
41
        return $this->type;
42
    }
43
44
    public function getDescription()
45
    {
46
        return $this->description;
47
    }
48
49
    public function getName()
50
    {
51
        return $this->name;
52
    }
53
54
    public function getIn()
55
    {
56
        return $this->in;
57
    }
58
59
    public function getScheme()
60
    {
61
        return $this->scheme;
62
    }
63
64
    public function getBearerFormat()
65
    {
66
        return $this->bearerFormat;
67
    }
68
69
    public function getFlows()
70
    {
71
        return $this->flows;
72
    }
73
74
    public function getOpenIdConnectUrl()
75
    {
76
        return $this->openIdConnectUrl;
77
    }
78
}
79