| 1 | <?php |
||
| 11 | class Where implements Snippet |
||
| 12 | { |
||
| 13 | use EscaperAware; |
||
| 14 | |||
| 15 | private |
||
| 16 | $conditions; |
||
|
1 ignored issue
–
show
|
|||
| 17 | |||
| 18 | 40 | public function __construct(Condition $condition = null) |
|
| 27 | |||
| 28 | 24 | public function where(Condition $condition): self |
|
| 34 | |||
| 35 | 34 | public function toString(): string |
|
| 45 | |||
| 46 | 34 | private function buildConditionString(): string |
|
| 60 | |||
| 61 | 28 | private function addCondition(Condition $condition): void |
|
| 65 | } |
||
| 66 |
The PSR-2 coding standard requires that all properties in a class have their visibility explicitly declared. If you declare a property using
the property is implicitly global.
To learn more about the PSR-2, please see the PHP-FIG site on the PSR-2.