1 | <?php |
||
28 | trait ElementAttributeTrait |
||
29 | { |
||
30 | use ActiveRecordTrait, |
||
31 | ElementRulesTrait, |
||
32 | ElementMutatorTrait; |
||
33 | |||
34 | /** |
||
35 | * @inheritdoc |
||
36 | */ |
||
37 | public function elementAttributes(): array |
||
43 | |||
44 | /** |
||
45 | * @inheritdoc |
||
46 | */ |
||
47 | public function elementAttributeLabels(): array |
||
53 | |||
54 | /** |
||
55 | * @inheritDoc |
||
56 | */ |
||
57 | protected function internalSetElementId(int $id = null) |
||
62 | |||
63 | /** |
||
64 | * @inheritDoc |
||
65 | */ |
||
66 | protected function internalGetElementId() |
||
73 | |||
74 | /** |
||
75 | * @return ElementInterface|null |
||
76 | */ |
||
77 | protected function resolveElement() |
||
85 | |||
86 | /** |
||
87 | * @return ElementInterface|null |
||
88 | */ |
||
89 | private function resolveElementFromRelation() |
||
103 | |||
104 | /** |
||
105 | * Get the associated Element |
||
106 | * |
||
107 | * @return ActiveQueryInterface |
||
108 | */ |
||
109 | public function getElementRecord(): ActiveQueryInterface |
||
116 | } |
||
117 |