1 | <?php |
||
14 | class ConditionGroup implements \IteratorAggregate |
||
15 | { |
||
16 | /** |
||
17 | * @var Condition[] |
||
18 | */ |
||
19 | protected $conditions = []; |
||
20 | |||
21 | /** |
||
22 | * @param Order[] $orders |
||
23 | * @param Cursor|int[]|string[] $cursor |
||
24 | * @param Direction $direction |
||
25 | * @param bool $exclusive |
||
26 | * @param bool $isSupportQuery |
||
27 | * @return static[] |
||
28 | */ |
||
29 | 10 | public static function createMany(array $orders, $cursor, Direction $direction, $exclusive, $isSupportQuery = false) |
|
54 | |||
55 | /** |
||
56 | * @param Order[] $orders |
||
57 | * @param Cursor|int[]|string[] $cursor |
||
58 | * @param Direction $direction |
||
59 | * @param bool $exclusive |
||
60 | * @param bool $hasPrimaryKey |
||
61 | * @param bool $isSupportQuery |
||
62 | * @return static |
||
63 | */ |
||
64 | 10 | public static function create(array $orders, $cursor, Direction $direction, $exclusive, $hasPrimaryKey, $isSupportQuery = false) |
|
88 | |||
89 | /** |
||
90 | * Group constructor. |
||
91 | * |
||
92 | * @param Condition[] $conditions |
||
93 | */ |
||
94 | 10 | public function __construct(array $conditions) |
|
98 | |||
99 | /** |
||
100 | * @param Condition[] $conditions |
||
101 | * @return Condition[] |
||
102 | */ |
||
103 | 10 | protected static function validate(Condition ...$conditions) |
|
107 | |||
108 | /** |
||
109 | * @return Condition[] |
||
110 | */ |
||
111 | public function conditions() |
||
115 | |||
116 | /** |
||
117 | * @return static |
||
118 | */ |
||
119 | 10 | public function inverse() |
|
125 | |||
126 | /** |
||
127 | * Clone Group. |
||
128 | */ |
||
129 | public function __clone() |
||
135 | |||
136 | /** |
||
137 | * Retrieve an external iterator. |
||
138 | * |
||
139 | * @return \ArrayIterator|Condition[] |
||
140 | */ |
||
141 | 10 | public function getIterator() |
|
145 | } |
||
146 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..