1 | <?php |
||
11 | class FuelUp { |
||
12 | |||
13 | public $vehicle; // rdx\fuelly\Vehicle |
||
14 | |||
15 | public $date; // DateTime |
||
16 | |||
17 | /** |
||
18 | * |
||
19 | */ |
||
20 | public static function createFromTrend( Vehicle $vehicle, array $fuelup, InputConversion $input = null ) { |
||
28 | |||
29 | /** |
||
30 | * |
||
31 | */ |
||
32 | public static function createFromDetail( Vehicle $vehicle, array $fuelup, InputConversion $input = null ) { |
||
37 | |||
38 | /** |
||
39 | * |
||
40 | */ |
||
41 | protected function __construct( Vehicle $vehicle, DateTime $date, $raw_distance, $raw_amount, InputConversion $input = null ) { |
||
58 | |||
59 | /** |
||
60 | * |
||
61 | */ |
||
62 | public static function createMileage( Length $distance, Volume $amount ) { |
||
66 | |||
67 | /** |
||
68 | * |
||
69 | */ |
||
70 | public static function dateCmp( FuelUp $a, FuelUp $b ) { |
||
73 | |||
74 | } |
||
75 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.