1 | <?php |
||
22 | abstract class AbstractEntityValueQuery extends AbstractEntityQuery |
||
23 | { |
||
24 | /** |
||
25 | * Sets field names which values will be written |
||
26 | * |
||
27 | * @param array $fields |
||
28 | * |
||
29 | * @return $this |
||
30 | */ |
||
31 | public function values($fields = []) |
||
56 | |||
57 | /** |
||
58 | * Adds field which value will be written |
||
59 | * |
||
60 | * @param string $field |
||
61 | * |
||
62 | * @return $this |
||
63 | */ |
||
64 | public function value($field) |
||
70 | |||
71 | /** |
||
72 | * Assigns value to query |
||
73 | * |
||
74 | * @param FieldInterface $field |
||
75 | */ |
||
76 | abstract protected function assignValue(FieldInterface $field); |
||
77 | |||
78 | /** |
||
79 | * Gets value from first referenced entity that has it |
||
80 | * |
||
81 | * @param FieldInterface $field |
||
82 | */ |
||
83 | protected function getValueFromReferencedEntity(FieldInterface $field) |
||
98 | } |
||
99 |