1 | <?php |
||
23 | class Time |
||
24 | { |
||
25 | /** |
||
26 | * @var \DateTime The start time for the forecast. |
||
27 | */ |
||
28 | public $from; |
||
29 | |||
30 | /** |
||
31 | * @var \DateTime The end time for the forecast. |
||
32 | */ |
||
33 | public $to; |
||
34 | |||
35 | /** |
||
36 | * @var \DateTime The day of the forecast. |
||
37 | */ |
||
38 | public $day; |
||
39 | |||
40 | /** |
||
41 | * Create a new time object. |
||
42 | * |
||
43 | * @param string|\DateTime $from The start time for the forecast. |
||
44 | * @param string|\DateTime|null $to The end time for the forecast. |
||
45 | * |
||
46 | * @internal |
||
47 | */ |
||
48 | 3 | public function __construct($from, $to = null) |
|
65 | } |
||
66 |