1 | <?php |
||
28 | trait UserAttributeTrait |
||
29 | { |
||
30 | use ActiveRecordTrait, |
||
31 | UserRulesTrait, |
||
32 | UserMutatorTrait; |
||
33 | |||
34 | /** |
||
35 | * @inheritdoc |
||
36 | */ |
||
37 | public function userAttributes(): array |
||
43 | |||
44 | /** |
||
45 | * @inheritdoc |
||
46 | */ |
||
47 | public function userAttributeLabels(): array |
||
53 | |||
54 | /** |
||
55 | * @inheritDoc |
||
56 | */ |
||
57 | protected function internalSetUserId(int $id = null) |
||
62 | |||
63 | /** |
||
64 | * @inheritDoc |
||
65 | */ |
||
66 | protected function internalGetUserId() |
||
73 | |||
74 | /** |
||
75 | * @return User|null |
||
76 | */ |
||
77 | protected function resolveUser() |
||
85 | |||
86 | /** |
||
87 | * @return User|null |
||
88 | */ |
||
89 | private function resolveUserFromRelation() |
||
103 | |||
104 | /** |
||
105 | * Get the associated User |
||
106 | * |
||
107 | * @return ActiveQueryInterface |
||
108 | */ |
||
109 | public function getUserRecord(): ActiveQueryInterface |
||
116 | } |
||
117 |