1 | <?php |
||
29 | trait FieldAttributeTrait |
||
30 | { |
||
31 | use ActiveRecordTrait, |
||
32 | FieldRulesTrait, |
||
33 | FieldMutatorTrait; |
||
34 | |||
35 | /** |
||
36 | * @inheritdoc |
||
37 | */ |
||
38 | public function fieldAttributes(): array |
||
44 | |||
45 | /** |
||
46 | * @inheritdoc |
||
47 | */ |
||
48 | public function fieldAttributeLabels(): array |
||
54 | |||
55 | /** |
||
56 | * @inheritDoc |
||
57 | */ |
||
58 | protected function internalSetFieldId(int $id = null) |
||
63 | |||
64 | /** |
||
65 | * @inheritDoc |
||
66 | */ |
||
67 | protected function internalGetFieldId() |
||
74 | |||
75 | /** |
||
76 | * @return FieldInterface|Field|null |
||
77 | */ |
||
78 | protected function resolveField() |
||
86 | |||
87 | /** |
||
88 | * @return FieldInterface|Field|null |
||
89 | */ |
||
90 | private function resolveFieldFromRelation() |
||
104 | |||
105 | /** |
||
106 | * Get the associated Field record |
||
107 | * |
||
108 | * @return ActiveQueryInterface |
||
109 | */ |
||
110 | public function getFieldRecord(): ActiveQueryInterface |
||
117 | } |
||
118 |