Total Complexity | 10 |
Total Lines | 69 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
7 | class Catalog |
||
8 | { |
||
9 | /** @var VersionDate version of the current version */ |
||
10 | private $date; |
||
11 | |||
12 | /** @var int */ |
||
13 | private $records; |
||
14 | |||
15 | /** @var int */ |
||
16 | private $inserted; |
||
17 | |||
18 | /** @var int */ |
||
19 | private $updated; |
||
20 | |||
21 | /** @var int */ |
||
22 | private $deleted; |
||
23 | |||
24 | 20 | public function __construct(VersionDate $date, int $records, int $inserted, int $updated, int $deleted) |
|
25 | { |
||
26 | 20 | $this->date = $date; |
|
27 | 20 | $this->records = $records; |
|
28 | 20 | $this->inserted = $inserted; |
|
29 | 20 | $this->updated = $updated; |
|
30 | 20 | $this->deleted = $deleted; |
|
31 | 20 | } |
|
32 | |||
33 | 13 | public function date(): VersionDate |
|
34 | { |
||
35 | 13 | return $this->date; |
|
36 | } |
||
37 | |||
38 | 11 | public function records(): int |
|
41 | } |
||
42 | |||
43 | 14 | public function inserted(): int |
|
44 | { |
||
45 | 14 | return $this->inserted; |
|
46 | } |
||
47 | |||
48 | 14 | public function updated(): int |
|
51 | } |
||
52 | |||
53 | 15 | public function deleted(): int |
|
54 | { |
||
55 | 15 | return $this->deleted; |
|
56 | } |
||
57 | |||
58 | 4 | public function setRecords(int $records) |
|
59 | { |
||
60 | 4 | $this->records = $records; |
|
61 | 4 | } |
|
62 | |||
63 | 7 | public function setInserted(int $inserted) |
|
64 | { |
||
65 | 7 | $this->inserted = $inserted; |
|
66 | 7 | } |
|
67 | |||
68 | 5 | public function setUpdated(int $updated) |
|
69 | { |
||
70 | 5 | $this->updated = $updated; |
|
71 | 5 | } |
|
72 | |||
73 | 5 | public function setDeleted(int $deleted) |
|
76 | 5 | } |
|
77 | } |
||
78 |