|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace kalanis\kw_auth\Data; |
|
4
|
|
|
|
|
5
|
|
|
|
|
6
|
|
|
use kalanis\kw_auth\Interfaces\IUser; |
|
7
|
|
|
|
|
8
|
|
|
|
|
9
|
|
|
/** |
|
10
|
|
|
* Class FileUser |
|
11
|
|
|
* @package kalanis\kw_auth\Data |
|
12
|
|
|
*/ |
|
13
|
|
|
class FileUser implements IUser |
|
14
|
|
|
{ |
|
15
|
|
|
/** @var string */ |
|
16
|
|
|
protected $authId = '0'; |
|
17
|
|
|
/** @var string */ |
|
18
|
|
|
protected $authName = ''; |
|
19
|
|
|
/** @var string */ |
|
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
|
61 |
|
public function setUserData(?string $authId, ?string $authName, ?string $authGroup, ?int $authClass, ?int $authStatus, ?string $displayName, ?string $dir): void |
|
31
|
|
|
{ |
|
32
|
61 |
|
$this->authId = $authId ?? $this->authId; |
|
33
|
61 |
|
$this->authName = $authName ?? $this->authName; |
|
34
|
61 |
|
$this->authGroup = $authGroup ?? $this->authGroup; |
|
35
|
61 |
|
$this->authClass = $authClass ?? $this->authClass; |
|
36
|
61 |
|
$this->authStatus = $authStatus; |
|
37
|
61 |
|
$this->displayName = $displayName ?? $this->displayName; |
|
38
|
61 |
|
$this->dir = $dir ?? $this->dir; |
|
39
|
61 |
|
} |
|
40
|
|
|
|
|
41
|
7 |
|
public function getAuthId(): string |
|
42
|
|
|
{ |
|
43
|
7 |
|
return $this->authId; |
|
44
|
|
|
} |
|
45
|
|
|
|
|
46
|
48 |
|
public function getAuthName(): string |
|
47
|
|
|
{ |
|
48
|
48 |
|
return $this->authName; |
|
49
|
|
|
} |
|
50
|
|
|
|
|
51
|
15 |
|
public function getGroup(): string |
|
52
|
|
|
{ |
|
53
|
15 |
|
return $this->authGroup; |
|
54
|
|
|
} |
|
55
|
|
|
|
|
56
|
21 |
|
public function getClass(): int |
|
57
|
|
|
{ |
|
58
|
21 |
|
return $this->authClass; |
|
59
|
|
|
} |
|
60
|
|
|
|
|
61
|
18 |
|
public function getStatus(): ?int |
|
62
|
|
|
{ |
|
63
|
18 |
|
return $this->authStatus; |
|
64
|
|
|
} |
|
65
|
|
|
|
|
66
|
44 |
|
public function getDisplayName(): string |
|
67
|
|
|
{ |
|
68
|
44 |
|
return $this->displayName; |
|
69
|
|
|
} |
|
70
|
|
|
|
|
71
|
32 |
|
public function getDir(): string |
|
72
|
|
|
{ |
|
73
|
32 |
|
return $this->dir; |
|
74
|
|
|
} |
|
75
|
|
|
} |
|
76
|
|
|
|