Total Complexity | 5 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
6 | class RefreshResponse { |
||
7 | |||
8 | /** |
||
9 | * @var string |
||
10 | */ |
||
11 | private $accessToken; |
||
12 | |||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | private $clientToken; |
||
17 | |||
18 | /** |
||
19 | * @var array |
||
20 | */ |
||
21 | private $rawSelectedProfile; |
||
22 | |||
23 | /** |
||
24 | * @var array |
||
25 | */ |
||
26 | private $rawUser; |
||
27 | |||
28 | 1 | public function __construct( |
|
29 | string $accessToken, |
||
30 | string $clientToken, |
||
31 | array $selectedProfile, |
||
32 | array $user |
||
33 | ) { |
||
34 | 1 | $this->accessToken = $accessToken; |
|
35 | 1 | $this->clientToken = $clientToken; |
|
36 | 1 | $this->rawSelectedProfile = $selectedProfile; |
|
37 | 1 | $this->rawUser = $user; |
|
38 | 1 | } |
|
39 | |||
40 | 1 | public function getAccessToken(): string { |
|
42 | } |
||
43 | |||
44 | 1 | public function getClientToken(): string { |
|
45 | 1 | return $this->clientToken; |
|
46 | } |
||
47 | |||
48 | 1 | public function getSelectedProfile(): ProfileInfo { |
|
49 | 1 | return ProfileInfo::createFromResponse($this->rawSelectedProfile); |
|
50 | } |
||
51 | |||
52 | 1 | public function getUser(): AuthenticationResponseUserField { |
|
54 | } |
||
55 | |||
56 | } |
||
57 |