| 1 | <?php |
||
| 13 | class Having implements Snippet |
||
| 14 | { |
||
| 15 | use |
||
| 16 | EscaperAware; |
||
| 17 | |||
| 18 | private |
||
| 19 | $condition; |
||
|
1 ignored issue
–
show
|
|||
| 20 | |||
| 21 | 29 | public function __construct() |
|
| 25 | |||
| 26 | 7 | public function having(Condition $condition): self |
|
| 32 | |||
| 33 | 25 | public function toString(): string |
|
| 42 | |||
| 43 | 7 | private function addCondition(Condition $condition): void |
|
| 47 | } |
||
| 48 |
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.