1 | <?php |
||
20 | trait ElementAttribute |
||
21 | { |
||
22 | /** |
||
23 | * The element(s) that the resulting organizations’ elements must have. |
||
24 | * |
||
25 | * @var string|string[]|int|int[]|ElementInterface|ElementInterface[]|null |
||
26 | */ |
||
27 | public $element; |
||
28 | |||
29 | /** |
||
30 | * @param string|string[]|int|int[]|ElementInterface|ElementInterface[]|null $value |
||
31 | * @return static The query object |
||
32 | */ |
||
33 | public function setElement($value) |
||
38 | |||
39 | /** |
||
40 | * @param string|string[]|int|int[]|ElementInterface|ElementInterface[]|null $value |
||
41 | * @return static The query object |
||
42 | */ |
||
43 | public function element($value) |
||
47 | |||
48 | /** |
||
49 | * @param string|string[]|int|int[]|ElementInterface|ElementInterface[]|null $value |
||
50 | * @return static The query object |
||
51 | */ |
||
52 | public function setElementId($value) |
||
56 | |||
57 | /** |
||
58 | * @param string|string[]|int|int[]|ElementInterface|ElementInterface[]|null $value |
||
59 | * @return static The query object |
||
60 | */ |
||
61 | public function elementId($value) |
||
65 | |||
66 | /** |
||
67 | * @param $value |
||
68 | * @param string $join |
||
69 | * @return array |
||
70 | */ |
||
71 | public function parseElementValue($value, string $join = 'or'): array |
||
87 | |||
88 | /** |
||
89 | * @param $operator |
||
90 | * @param $value |
||
91 | */ |
||
92 | protected function resolveElementValue($operator, &$value) |
||
108 | |||
109 | /** |
||
110 | * @param string $value |
||
111 | * @return int|null |
||
112 | */ |
||
113 | protected function resolveElementStringValue(string $value) |
||
120 | } |
||
121 |