1 | <?php |
||
22 | trait UserGroupAttribute |
||
23 | { |
||
24 | /** |
||
25 | * The user group(s) that the resulting organizations’ users must be in. |
||
26 | * |
||
27 | * @var string|string[]|int|int[]|UserGroup|UserGroup[]|null |
||
28 | */ |
||
29 | public $userGroup; |
||
30 | |||
31 | /** |
||
32 | * @param string|string[]|int|int[]|UserGroup|UserGroup[]|null $value |
||
33 | * @return static The query object |
||
34 | */ |
||
35 | public function setUserGroup($value) |
||
40 | |||
41 | /** |
||
42 | * @param string|string[]|int|int[]|UserGroup|UserGroup[]|null $value |
||
43 | * @return static The query object |
||
44 | */ |
||
45 | public function userGroup($value) |
||
49 | |||
50 | /** |
||
51 | * @param string|string[]|int|int[]|UserGroup|UserGroup[]|null $value |
||
52 | * @return static The query object |
||
53 | */ |
||
54 | public function setUserGroupId($value) |
||
58 | |||
59 | /** |
||
60 | * @param string|string[]|int|int[]|UserGroup|UserGroup[]|null $value |
||
61 | * @return static The query object |
||
62 | */ |
||
63 | public function userGroupId($value) |
||
67 | |||
68 | /** |
||
69 | * @param $value |
||
70 | * @param string $join |
||
71 | * @return array |
||
72 | */ |
||
73 | public function parseUserGroupValue($value, string $join = 'or'): array |
||
90 | |||
91 | /** |
||
92 | * @param $operator |
||
93 | * @param $value |
||
94 | */ |
||
95 | private function resolveUserGroupValue($operator, &$value) |
||
111 | |||
112 | /** |
||
113 | * @param string $value |
||
114 | * @return string|null |
||
115 | */ |
||
116 | protected function resolveUserGroupStringValue(string $value) |
||
125 | } |
||
126 |
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.