File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -35,25 +35,28 @@ interface BooleanType extends PropertyType
35
35
* Create a conjunction between this expression and the given expression.
36
36
*
37
37
* @param BooleanType $right
38
+ * @param bool $insertParentheses
38
39
* @return AndOperator
39
40
*/
40
- public function and (BooleanType $ right ): AndOperator ;
41
+ public function and (BooleanType $ right, bool $ insertParentheses = true ): AndOperator ;
41
42
42
43
/**
43
44
* Create a disjunction between this expression and the given expression.
44
45
*
45
46
* @param BooleanType $right
47
+ * @param bool $insertParentheses
46
48
* @return OrOperator
47
49
*/
48
- public function or (BooleanType $ right ): OrOperator ;
50
+ public function or (BooleanType $ right, bool $ insertParentheses = true ): OrOperator ;
49
51
50
52
/**
51
53
* Perform an XOR with the given expression.
52
54
*
53
55
* @param BooleanType $right
56
+ * @param bool $insertParentheses
54
57
* @return XorOperator
55
58
*/
56
- public function xor (BooleanType $ right ): XorOperator ;
59
+ public function xor (BooleanType $ right, bool $ insertParentheses = true ): XorOperator ;
57
60
58
61
/**
59
62
* Negate this expression (using the NOT operator).
You can’t perform that action at this time.
0 commit comments