Completed
Pull Request — master (#3407)
by Antoine
04:51 queued 19s
created

OAuthFlows   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Importance

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

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getPassword() 0 3 1
A getAuthorizationCode() 0 3 1
A getClientCredentials() 0 3 1
A getImplicit() 0 3 1
A __construct() 0 6 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 OAuthFlows
17
{
18
    private $implicit;
19
    private $password;
20
    private $clientCredentials;
21
    private $authorizationCode;
22
23
    public function __construct(OAuthFlow $implicit = null, OAuthFlow $password = null, OAuthFlow $clientCredentials = null, OAuthFlow $authorizationCode = null)
24
    {
25
        $this->implicit = $implicit;
26
        $this->password = $password;
27
        $this->clientCredentials = $clientCredentials;
28
        $this->authorizationCode = $authorizationCode;
29
    }
30
31
    public function getImplicit()
32
    {
33
        return $this->implicit;
34
    }
35
36
    public function getPassword()
37
    {
38
        return $this->password;
39
    }
40
41
    public function getClientCredentials()
42
    {
43
        return $this->clientCredentials;
44
    }
45
46
    public function getAuthorizationCode()
47
    {
48
        return $this->authorizationCode;
49
    }
50
}
51