Base::getArchivedAt()   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 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace InvoiceNinjaModule\Model;
6
7
use InvoiceNinjaModule\Model\Interfaces\BaseInterface;
8
9
/**
10
 * Class Base
11
 */
12
class Base implements BaseInterface
13
{
14
    protected string $id = '';
15
    protected int $updatedAt = 0;
16
    protected int $archivedAt = 0;
17
    protected int $createdAt = 0;
18
    protected bool $isDeleted = false;
19
20
    /**
21
     * @return string
22
     */
23 1
    public function getId(): string
24
    {
25 1
        return $this->id;
26
    }
27
28
    /**
29
     * @return int
30
     */
31 1
    public function getUpdatedAt(): int
32
    {
33 1
        return $this->updatedAt;
34
    }
35
36
    /**
37
     * @return int
38
     */
39 1
    public function getArchivedAt(): int
40
    {
41 1
        return $this->archivedAt;
42
    }
43
44
    /**
45
     * @return int
46
     */
47 1
    public function getCreatedAt(): int
48
    {
49 1
        return $this->archivedAt;
50
    }
51
52
    /**
53
     * @return bool
54
     */
55 1
    public function isDeleted(): bool
56
    {
57 1
        return $this->isDeleted;
58
    }
59
}
60