Completed
Branch development (fff272)
by Philippe
03:30 queued 01:25
created

Account::setRefreshToken()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
/*
3
 * This program is free software: you can redistribute it and/or modify
4
 * it under the terms of the GNU General Public License as published by
5
 * the Free Software Foundation, either version 3 of the License, or
6
 * (at your option) any later version.
7
 *
8
 * This program is distributed in the hope that it will be useful,
9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
 * GNU General Public License for more details.
12
 *
13
 * You should have received a copy of the GNU General Public License
14
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
15
 */
16
17
namespace Filoucrackeur\Hubic\Domain\Model;
18
19
use TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
20
21
class Account extends AbstractEntity
22
{
23
    /**
24
     * @var string
25
     */
26
    protected $name;
27
28
    /**
29
     * @var string
30
     */
31
    protected $clientId;
32
33
    /**
34
     * @var string
35
     */
36
    protected $clientSecret;
37
38
    /**
39
     * @var string
40
     */
41
    protected $accessToken;
42
43
    /**
44
     * @var string
45
     */
46
    protected $refreshToken;
47
48
    /**
49
     * @var string
50
     */
51
    protected $scope;
52
53
    /**
54
     * @return string
55
     */
56
    public function getName(): string
57
    {
58
        return $this->name;
59
    }
60
61
    /**
62
     * @param string $name
63
     */
64
    public function setName(string $name)
65
    {
66
        $this->name = $name;
67
    }
68
69
    /**
70
     * @return string
71
     */
72
    public function getClientId(): string
73
    {
74
        return $this->clientId;
75
    }
76
77
    /**
78
     * @param string $clientId
79
     */
80
    public function setClientId(string $clientId)
81
    {
82
        $this->clientId = $clientId;
83
    }
84
85
    /**
86
     * @return string
87
     */
88
    public function getClientSecret(): string
89
    {
90
        return $this->clientSecret;
91
    }
92
93
    /**
94
     * @param string $clientSecret
95
     */
96
    public function setClientSecret(string $clientSecret)
97
    {
98
        $this->clientSecret = $clientSecret;
99
    }
100
101
    /**
102
     * @return string
103
     */
104
    public function getAccessToken(): string
105
    {
106
        return $this->accessToken;
107
    }
108
109
    /**
110
     * @param string $accessToken
111
     */
112
    public function setAccessToken(string $accessToken)
113
    {
114
        $this->accessToken = $accessToken;
115
    }
116
117
    /**
118
     * @return string
119
     */
120
    public function getRefreshToken(): string
121
    {
122
        return $this->refreshToken;
123
    }
124
125
    /**
126
     * @param string $refreshToken
127
     */
128
    public function setRefreshToken(string $refreshToken): void
129
    {
130
        $this->refreshToken = $refreshToken;
131
    }
132
133
    /**
134
     * @return string
135
     */
136
    public function getScope(): string
137
    {
138
        return $this->scope;
139
    }
140
141
    /**
142
     * @param string $scope
143
     */
144
    public function setScope(string $scope)
145
    {
146
        $this->scope = $scope;
147
    }
148
}
149