| 1 | <?php |
||
| 10 | class Offset implements Snippet |
||
| 11 | { |
||
| 12 | use StringManipulation; |
||
| 13 | |||
| 14 | private |
||
| 15 | $offset; |
||
|
1 ignored issue
–
show
|
|||
| 16 | |||
| 17 | /** |
||
| 18 | * @param int|string $offset |
||
| 19 | */ |
||
| 20 | 11 | public function __construct($offset) |
|
| 24 | |||
| 25 | 10 | public function toString(): string |
|
| 37 | |||
| 38 | 11 | private function convertToInteger($value): ?int |
|
| 52 | } |
||
| 53 |
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.