-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathObservation.php
More file actions
132 lines (110 loc) · 2.2 KB
/
Copy pathObservation.php
File metadata and controls
132 lines (110 loc) · 2.2 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<?php
declare(strict_types=1);
namespace BomWeather\Observation;
/**
* Value object for an observation.
*/
final class Observation {
/**
* The date time.
*/
protected ?\DateTimeImmutable $dateTime = NULL;
/**
* The weather station.
*/
protected ?Station $station = NULL;
/**
* The temperature observation.
*/
protected ?Temperature $temperature = NULL;
/**
* The wind observation.
*/
protected ?Wind $wind = NULL;
/**
* The pressure observation.
*/
protected ?Pressure $pressure = NULL;
/**
* The rain since 9am, in millimetres.
*/
protected ?string $rainSince9am = NULL;
/**
* Gets the DateTime.
*/
public function getDateTime(): ?\DateTimeImmutable {
return $this->dateTime;
}
/**
* Sets the DateTime.
*/
public function setDateTime(\DateTimeImmutable $dateTime): self {
$this->dateTime = $dateTime;
return $this;
}
/**
* Gets the Station.
*/
public function getStation(): Station {
return $this->station;
}
/**
* Sets the Station.
*/
public function setStation(Station $station): self {
$this->station = $station;
return $this;
}
/**
* Gets the Temperature.
*/
public function getTemperature(): ?Temperature {
return $this->temperature;
}
/**
* Sets the Temperature.
*/
public function setTemperature(Temperature $temperature): self {
$this->temperature = $temperature;
return $this;
}
/**
* Gets the Wind.
*/
public function getWind(): ?Wind {
return $this->wind;
}
/**
* Sets the Wind.
*/
public function setWind(Wind $wind): self {
$this->wind = $wind;
return $this;
}
/**
* Gets the Pressure.
*/
public function getPressure(): ?Pressure {
return $this->pressure;
}
/**
* Sets the Pressure.
*/
public function setPressure(Pressure $pressure): self {
$this->pressure = $pressure;
return $this;
}
/**
* Gets the RainSince9am.
*/
public function getRainSince9am(): ?string {
return $this->rainSince9am;
}
/**
* Sets the RainSince9am.
*/
public function setRainSince9am(string $rainSince9am): self {
$this->rainSince9am = $rainSince9am;
return $this;
}
}