Total Complexity | 6 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class FileGroup implements IGroup |
||
14 | { |
||
15 | /** @var int */ |
||
16 | protected $id = 0; |
||
17 | /** @var string */ |
||
18 | protected $name = ''; |
||
19 | /** @var int */ |
||
20 | protected $author = 0; |
||
21 | /** @var string */ |
||
22 | protected $displayName = ''; |
||
23 | /** @var int */ |
||
24 | protected $status = 0; |
||
25 | |||
26 | 19 | public function setData(int $id, string $name, int $author, string $display, int $status): void |
|
27 | { |
||
28 | 19 | $this->id = $id; |
|
29 | 19 | $this->name = $name; |
|
30 | 19 | $this->author = $author; |
|
31 | 19 | $this->displayName = $display; |
|
32 | 19 | $this->status = $status; |
|
33 | 19 | } |
|
34 | |||
35 | 5 | public function getGroupId(): int |
|
36 | { |
||
37 | 5 | return $this->id; |
|
38 | } |
||
39 | |||
40 | 15 | public function getGroupName(): string |
|
43 | } |
||
44 | |||
45 | 16 | public function getGroupAuthorId(): int |
|
46 | { |
||
47 | 16 | return $this->author; |
|
48 | } |
||
49 | |||
50 | 19 | public function getGroupDesc(): string |
|
51 | { |
||
52 | 19 | return $this->displayName; |
|
53 | } |
||
54 | |||
55 | 6 | public function getGroupStatus(): int |
|
58 | } |
||
59 | } |
||
60 |