1 | <?php |
||
10 | class Using implements Snippet |
||
11 | { |
||
12 | use StringManipulation; |
||
13 | |||
14 | private |
||
15 | $columns; |
||
1 ignored issue
–
show
|
|||
16 | |||
17 | /** |
||
18 | * @param array[string]|string $column |
||
19 | */ |
||
20 | 14 | public function __construct($column) |
|
24 | |||
25 | 14 | public function toString(): string |
|
39 | |||
40 | 14 | private function convertToArray($input): array |
|
54 | } |
||
55 |
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.