Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
66.67% |
8 / 12 |
|
42.86% |
3 / 7 |
CRAP | |
0.00% |
0 / 1 |
AuthToken | |
66.67% |
8 / 12 |
|
42.86% |
3 / 7 |
8.81 | |
0.00% |
0 / 1 |
__construct | |
100.00% |
6 / 6 |
|
100.00% |
1 / 1 |
1 | |||
getToken | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getId | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getType | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getWorkspaceId | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getMode | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getGroup | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | |
4 | class AuthToken extends DataCollectionTypeSafe { |
5 | |
6 | protected $token; |
7 | protected $id; |
8 | protected $type; |
9 | protected $workspaceId; |
10 | protected $mode; |
11 | protected $group; |
12 | |
13 | public function __construct( |
14 | string $token, |
15 | int $id, |
16 | string $type, |
17 | int $workspaceId, |
18 | string $mode, |
19 | string $group |
20 | ) { |
21 | |
22 | $this->token = $token; |
23 | $this->id = $id; |
24 | $this->type = $type; |
25 | $this->workspaceId = $workspaceId; |
26 | $this->mode = $mode; |
27 | $this->group = $group; |
28 | } |
29 | |
30 | |
31 | public function getToken(): string { |
32 | |
33 | return $this->token; |
34 | } |
35 | |
36 | |
37 | public function getId(): int { |
38 | |
39 | return $this->id; |
40 | } |
41 | |
42 | |
43 | public function getType(): string { |
44 | |
45 | return $this->type; |
46 | } |
47 | |
48 | |
49 | public function getWorkspaceId(): int { |
50 | |
51 | return $this->workspaceId; |
52 | } |
53 | |
54 | |
55 | public function getMode(): string { |
56 | |
57 | return $this->mode; |
58 | } |
59 | |
60 | |
61 | public function getGroup(): string { |
62 | |
63 | return $this->group; |
64 | } |
65 | } |