| Total Complexity | 8 |
| Total Lines | 61 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class FileUser implements IUser |
||
| 14 | { |
||
| 15 | /** @var int */ |
||
| 16 | protected $authId = 0; |
||
| 17 | /** @var string */ |
||
| 18 | protected $authName = ''; |
||
| 19 | /** @var int */ |
||
| 20 | protected $authGroup = 0; |
||
| 21 | /** @var int */ |
||
| 22 | protected $authClass = 0; |
||
| 23 | /** @var int|null */ |
||
| 24 | protected $authStatus = null; |
||
| 25 | /** @var string */ |
||
| 26 | protected $displayName = ''; |
||
| 27 | /** @var string */ |
||
| 28 | protected $dir = ''; |
||
| 29 | |||
| 30 | 39 | public function setData(int $authId, string $authName, int $authGroup, int $authClass, ?int $authStatus, string $displayName, string $dir): void |
|
| 31 | { |
||
| 32 | 39 | $this->authId = $authId; |
|
| 33 | 39 | $this->authName = $authName; |
|
| 34 | 39 | $this->authGroup = $authGroup; |
|
| 35 | 39 | $this->authClass = $authClass; |
|
| 36 | 39 | $this->authStatus = $authStatus; |
|
| 37 | 39 | $this->displayName = $displayName; |
|
| 38 | 39 | $this->dir = $dir; |
|
| 39 | 39 | } |
|
| 40 | |||
| 41 | 7 | public function getAuthId(): int |
|
| 42 | { |
||
| 43 | 7 | return $this->authId; |
|
| 44 | } |
||
| 45 | |||
| 46 | 30 | public function getAuthName(): string |
|
| 47 | { |
||
| 48 | 30 | return $this->authName; |
|
| 49 | } |
||
| 50 | |||
| 51 | 9 | public function getGroup(): int |
|
| 54 | } |
||
| 55 | |||
| 56 | 13 | public function getClass(): int |
|
| 59 | } |
||
| 60 | |||
| 61 | 11 | public function getStatus(): ?int |
|
| 62 | { |
||
| 63 | 11 | return $this->authStatus; |
|
| 64 | } |
||
| 65 | |||
| 66 | 27 | public function getDisplayName(): string |
|
| 67 | { |
||
| 68 | 27 | return $this->displayName; |
|
| 69 | } |
||
| 70 | |||
| 71 | 19 | public function getDir(): string |
|
| 74 | } |
||
| 75 | } |
||
| 76 |