1 | <?php |
||
22 | class Time extends Variadic implements DateTimeInterface |
||
23 | { |
||
24 | use DateTimeTrait; |
||
25 | |||
26 | /** |
||
27 | * @var Hour |
||
28 | */ |
||
29 | protected $hour; |
||
30 | |||
31 | /** |
||
32 | * @var Minute |
||
33 | */ |
||
34 | protected $minute; |
||
35 | |||
36 | /** |
||
37 | * @var Second |
||
38 | */ |
||
39 | protected $second; |
||
40 | |||
41 | /** |
||
42 | * @param Hour $hour |
||
43 | * @param Minute $minute |
||
44 | * @param Second $second |
||
45 | */ |
||
46 | 17 | public function __construct(Hour $hour, Minute $minute, Second $second) |
|
58 | |||
59 | /** |
||
60 | * @return static |
||
61 | */ |
||
62 | 7 | public static function now() |
|
66 | |||
67 | /** |
||
68 | * @param \DateTime $dateTime |
||
69 | * @return static |
||
70 | */ |
||
71 | 4 | public static function fromNative(\DateTime $dateTime) |
|
79 | |||
80 | /** |
||
81 | * @return Hour |
||
82 | */ |
||
83 | 1 | public function getHour() |
|
87 | |||
88 | /** |
||
89 | * @return Minute |
||
90 | */ |
||
91 | 1 | public function getMinute() |
|
95 | |||
96 | /** |
||
97 | * @return Second |
||
98 | */ |
||
99 | 1 | public function getSecond() |
|
103 | |||
104 | /** |
||
105 | * @return int |
||
106 | */ |
||
107 | 12 | public function getTimestamp() |
|
111 | |||
112 | /** |
||
113 | * @return int |
||
114 | */ |
||
115 | 1 | public function getValue() |
|
119 | |||
120 | /** |
||
121 | * @return string |
||
122 | */ |
||
123 | 12 | public function __toString() |
|
127 | } |
||
128 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..