Base   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 11
c 1
b 0
f 1
dl 0
loc 46
ccs 10
cts 10
cp 1
rs 10
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A isDeleted() 0 3 1
A getUpdatedAt() 0 3 1
A getCreatedAt() 0 3 1
A getArchivedAt() 0 3 1
A getId() 0 3 1
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