| 1 | <?php |
||
| 9 | class From implements Snippet |
||
| 10 | { |
||
| 11 | private |
||
| 12 | $tableName; |
||
|
1 ignored issue
–
show
|
|||
| 13 | |||
| 14 | /** |
||
| 15 | * @param TableName|string $table |
||
| 16 | */ |
||
| 17 | 36 | public function __construct($table, ?string $alias = null) |
|
| 26 | |||
| 27 | 32 | public function toString(): string |
|
| 31 | } |
||
| 32 |
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.