1 | <?php |
||
12 | abstract class AbstractCompositeCondition extends AbstractCondition implements CompositeCondition |
||
13 | { |
||
14 | protected |
||
15 | $leftCondition, |
||
1 ignored issue
–
show
|
|||
16 | $rightCondition; |
||
17 | |||
18 | 45 | public function __construct(Condition $leftCondition, Condition $rightCondition) |
|
23 | |||
24 | 41 | public function toString(Escaper $escaper): string |
|
38 | |||
39 | 40 | public function isEmpty(): bool |
|
43 | |||
44 | 33 | protected function buildPartCondition(Condition $condition, Escaper $escaper): string |
|
55 | |||
56 | abstract protected function buildCondition(Escaper $escaper): string; |
||
57 | } |
||
58 |
Only declaring a single property per statement allows you to later on add doc comments more easily.
It is also recommended by PSR2, so it is a common style that many people expect.