1 | <?php |
||
16 | abstract class AbstractUser implements UserInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var SystemInterface |
||
20 | */ |
||
21 | protected $system; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $id; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | protected $name; |
||
32 | |||
33 | /** |
||
34 | * @var string|null |
||
35 | */ |
||
36 | protected $avatar; |
||
37 | |||
38 | /** |
||
39 | * User constructor. |
||
40 | * @param SystemInterface $system |
||
41 | * @param string $id |
||
42 | * @param string $name |
||
43 | */ |
||
44 | public function __construct(SystemInterface $system, string $id, string $name) |
||
50 | |||
51 | /** |
||
52 | * @return array |
||
53 | */ |
||
54 | public function __debugInfo(): array |
||
63 | |||
64 | /** |
||
65 | * @return SystemInterface |
||
66 | */ |
||
67 | public function getSystem(): SystemInterface |
||
71 | |||
72 | /** |
||
73 | * @return string |
||
74 | */ |
||
75 | public function getId(): string |
||
79 | |||
80 | /** |
||
81 | * @return string |
||
82 | */ |
||
83 | public function getName(): string |
||
87 | |||
88 | /** |
||
89 | * @return null|string |
||
90 | */ |
||
91 | public function getAvatar(): ?string |
||
95 | } |
||
96 |