-
Notifications
You must be signed in to change notification settings - Fork 12
/
State.php
executable file
·40 lines (38 loc) · 1.48 KB
/
State.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
namespace KateMorley\Grid\State;
/** Represents the UI state. */
class State {
/**
* Constructs a new instance.
*
* @param int $time The time of the latest data
* @param Datum $latest The latest datum
* @param Datum $pastDay The past day's datum
* @param Datum $pastWeek The past week's datum
* @param Datum $pastYear The past year's datum
* @param Datum $allTime The all-time datum
* @param array $pastDaySeries The past day series
* @param array $pastWeekSeries The past week series
* @param array $pastYearSeries The past year series
* @param array $allTimeSeries The all-time series
* @param Record $windRecord The wind power generation record
* @param array $windMilestones The wind power generation milestones
* @param int $yearlyVisits The number of visits in the past year
*/
public function __construct(
public readonly int $time,
public readonly Datum $latest,
public readonly Datum $pastDay,
public readonly Datum $pastWeek,
public readonly Datum $pastYear,
public readonly Datum $allTime,
public readonly array $pastDaySeries,
public readonly array $pastWeekSeries,
public readonly array $pastYearSeries,
public readonly array $allTimeSeries,
public readonly Record $windRecord,
public readonly array $windMilestones,
public readonly int $yearlyVisits
) {
}
}