Catalog::updated()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace PhpCfdi\RfcLinc\Domain;
6
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
39
    {
40 11
        return $this->records;
41
    }
42
43 14
    public function inserted(): int
44
    {
45 14
        return $this->inserted;
46
    }
47
48 14
    public function updated(): int
49
    {
50 14
        return $this->updated;
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)
74
    {
75 5
        $this->deleted = $deleted;
76 5
    }
77
}
78