| Total Complexity | 7 |
| Total Lines | 56 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class FileGroup implements IGroup |
||
| 14 | { |
||
| 15 | /** @var string */ |
||
| 16 | protected $id = '0'; |
||
| 17 | /** @var string */ |
||
| 18 | protected $name = ''; |
||
| 19 | /** @var string */ |
||
| 20 | protected $author = '0'; |
||
| 21 | /** @var string */ |
||
| 22 | protected $displayName = ''; |
||
| 23 | /** @var int */ |
||
| 24 | protected $status = 0; |
||
| 25 | /** @var string[] */ |
||
| 26 | protected $parents = []; |
||
| 27 | |||
| 28 | 31 | public function setGroupData(?string $id, ?string $name, ?string $desc, ?string $authorId, ?int $status, ?array $parents = []): void |
|
| 29 | { |
||
| 30 | 31 | $this->id = $id ?? $this->id; |
|
| 31 | 31 | $this->name = $name ?? $this->name; |
|
| 32 | 31 | $this->displayName = $desc ?? $this->displayName; |
|
| 33 | 31 | $this->author = $authorId ?? $this->author; |
|
| 34 | 31 | $this->status = $status ?? $this->status; |
|
| 35 | 31 | $this->parents = $parents ?? $this->parents; |
|
| 36 | 31 | } |
|
| 37 | |||
| 38 | 7 | public function getGroupId(): string |
|
| 39 | { |
||
| 40 | 7 | return $this->id; |
|
| 41 | } |
||
| 42 | |||
| 43 | 25 | public function getGroupName(): string |
|
| 46 | } |
||
| 47 | |||
| 48 | 25 | public function getGroupAuthorId(): string |
|
| 49 | { |
||
| 50 | 25 | return $this->author; |
|
| 51 | } |
||
| 52 | |||
| 53 | 31 | public function getGroupDesc(): string |
|
| 54 | { |
||
| 55 | 31 | return $this->displayName; |
|
| 56 | } |
||
| 57 | |||
| 58 | 9 | public function getGroupStatus(): int |
|
| 59 | { |
||
| 60 | 9 | return $this->status; |
|
| 61 | } |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @return string[] |
||
| 65 | */ |
||
| 66 | 8 | public function getGroupParents(): array |
|
| 69 | } |
||
| 70 | } |
||
| 71 |