1
|
|
|
<?php declare(strict_types = 1); |
2
|
|
|
|
3
|
|
|
namespace Suilven\CovidAPIClient\Model; |
4
|
|
|
|
5
|
|
|
class SingleEntry |
6
|
|
|
{ |
7
|
|
|
/** @var string $date */ |
8
|
|
|
private $date; |
9
|
|
|
|
10
|
|
|
/** @var string */ |
11
|
|
|
private $areaName; |
12
|
|
|
|
13
|
|
|
/** @var string */ |
14
|
|
|
private $areaCode; |
15
|
|
|
|
16
|
|
|
/** @var ?int */ |
17
|
|
|
private $newCasesByPublishDate; |
18
|
|
|
|
19
|
|
|
/** @var ?int */ |
20
|
|
|
private $cumCasesByPublishDate; |
21
|
|
|
|
22
|
|
|
/** @var ?int */ |
23
|
|
|
private $newDeaths28DaysByDeathDate; |
24
|
|
|
|
25
|
|
|
/** @var ?int */ |
26
|
|
|
private $cumDeaths28DaysByDeathDate; |
27
|
|
|
|
28
|
|
|
public function getDate(): string |
29
|
|
|
{ |
30
|
|
|
return $this->date; |
31
|
|
|
} |
32
|
|
|
|
33
|
|
|
|
34
|
|
|
public function setDate(string $date): void |
35
|
|
|
{ |
36
|
|
|
$this->date = $date; |
37
|
|
|
} |
38
|
|
|
|
39
|
|
|
|
40
|
|
|
public function getAreaName(): string |
41
|
|
|
{ |
42
|
|
|
return $this->areaName; |
43
|
|
|
} |
44
|
|
|
|
45
|
|
|
|
46
|
|
|
public function setAreaName(string $areaName): void |
47
|
|
|
{ |
48
|
|
|
$this->areaName = $areaName; |
49
|
|
|
} |
50
|
|
|
|
51
|
|
|
|
52
|
|
|
public function getAreaCode(): string |
53
|
|
|
{ |
54
|
|
|
return $this->areaCode; |
55
|
|
|
} |
56
|
|
|
|
57
|
|
|
|
58
|
|
|
public function setAreaCode(string $areaCode): void |
59
|
|
|
{ |
60
|
|
|
$this->areaCode = $areaCode; |
61
|
|
|
} |
62
|
|
|
|
63
|
|
|
|
64
|
|
|
public function getNewCasesByPublishDate(): ?int |
65
|
|
|
{ |
66
|
|
|
return $this->newCasesByPublishDate; |
67
|
|
|
} |
68
|
|
|
|
69
|
|
|
|
70
|
|
|
public function setNewCasesByPublishDate(?int $newCasesByPublishDate): void |
71
|
|
|
{ |
72
|
|
|
$this->newCasesByPublishDate = $newCasesByPublishDate; |
73
|
|
|
} |
74
|
|
|
|
75
|
|
|
|
76
|
|
|
public function getCumCasesByPublishDate(): ?int |
77
|
|
|
{ |
78
|
|
|
return $this->cumCasesByPublishDate; |
79
|
|
|
} |
80
|
|
|
|
81
|
|
|
|
82
|
|
|
public function setCumCasesByPublishDate(?int $cumCasesByPublishDate): void |
83
|
|
|
{ |
84
|
|
|
$this->cumCasesByPublishDate = $cumCasesByPublishDate; |
85
|
|
|
} |
86
|
|
|
|
87
|
|
|
|
88
|
|
|
public function getNewDeaths28DaysByDeathDate(): ?int |
89
|
|
|
{ |
90
|
|
|
return $this->newDeaths28DaysByDeathDate; |
91
|
|
|
} |
92
|
|
|
|
93
|
|
|
|
94
|
|
|
public function setNewDeaths28DaysByDeathDate(?int $newDeaths28DaysByDeathDate): void |
95
|
|
|
{ |
96
|
|
|
$this->newDeaths28DaysByDeathDate = $newDeaths28DaysByDeathDate; |
97
|
|
|
} |
98
|
|
|
|
99
|
|
|
|
100
|
|
|
public function getCumDeaths28DaysByDeathDate(): ?int |
101
|
|
|
{ |
102
|
|
|
return $this->cumDeaths28DaysByDeathDate; |
103
|
|
|
} |
104
|
|
|
|
105
|
|
|
|
106
|
|
|
public function setCumDeaths28DaysByDeathDate(?int $cumDeaths28DaysByDeathDate): void |
107
|
|
|
{ |
108
|
|
|
$this->cumDeaths28DaysByDeathDate = $cumDeaths28DaysByDeathDate; |
109
|
|
|
} |
110
|
|
|
} |
111
|
|
|
|