Consent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 4
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * The MIT License (MIT)
7
 *
8
 * Copyright (c) 2014-2019 Spomky-Labs
9
 *
10
 * This software may be modified and distributed under the terms
11
 * of the MIT license.  See the LICENSE file for details.
12
 */
13
14
namespace OAuth2Framework\Component\AuthorizationEndpoint\Consent;
15
16
class Consent
17
{
18
    /**
19
     * @var string
20
     */
21
    private $clientId;
22
23
    /**
24
     * @var string
25
     */
26
    private $userAccountId;
27
28
    /**
29
     * @var string
30
     */
31
    private $requestedScope;
32
33
    /**
34
     * @var string
35
     */
36
    private $grantedScope;
37
38
    /**
39
     * @var string
40
     */
41
    private $requestedClaims;
42
43
    /**
44
     * @var string
45
     */
46
    private $grantedClaims;
47
48
    public function __construct(string $clientId, string $userAccountId, string $scope, string $claims)
49
    {
50
        $this->clientId = $clientId;
51
        $this->userAccountId = $userAccountId;
52
        $this->requestedScope = $scope;
53
        $this->requestedClaims = $claims;
54
    }
55
56
    public function getClientId(): string
57
    {
58
        return $this->clientId;
59
    }
60
61
    public function getUserAccountId(): string
62
    {
63
        return $this->userAccountId;
64
    }
65
66
    public function getRequestedScope(): string
67
    {
68
        return $this->requestedScope;
69
    }
70
71
    public function getRequestedClaims(): string
72
    {
73
        return $this->requestedClaims;
74
    }
75
76
    public function getGrantedScope(): string
77
    {
78
        return $this->grantedScope;
79
    }
80
81
    public function setGrantedScope(string $grantedScope): void
82
    {
83
        $this->grantedScope = $grantedScope;
84
    }
85
86
    public function getGrantedClaims(): string
87
    {
88
        return $this->grantedClaims;
89
    }
90
91
    public function setGrantedClaims(string $grantedClaims): void
92
    {
93
        $this->grantedClaims = $grantedClaims;
94
    }
95
}
96