Completed
Push — master ( 0277e9...db813e )
by Al3x
03:09
created

Base   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 63
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 0
dl 0
loc 63
ccs 12
cts 12
cp 1
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A getAccountKey() 0 4 1
A isOwner() 0 4 1
A getUpdatedAt() 0 4 1
A getArchivedAt() 0 4 1
A isDeleted() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
namespace InvoiceNinjaModule\Model;
5
6
use InvoiceNinjaModule\Model\Interfaces\BaseInterface;
7
8
class Base implements BaseInterface
9
{
10
    /** @var  int */
11
    protected $id = 0;
12
    /** @var  string */
13
    protected $accountKey = '';
14
    /** @var  bool */
15
    protected $isOwner = false;
16
    /** @var  int */
17
    protected $updatedAt;
18
    /** @var  int */
19
    protected $archivedAt;
20
    /** @var  bool */
21
    protected $isDeleted = false;
22
23
    /**
24
     * @return int
25
     */
26 1
    public function getId() :int
27
    {
28 1
        return $this->id;
29
    }
30
31
    /**
32
     * @return string
33
     */
34 1
    public function getAccountKey() :string
35
    {
36 1
        return $this->accountKey;
37
    }
38
39
    /**
40
     * @return bool
41
     */
42 1
    public function isOwner() :bool
43
    {
44 1
        return $this->isOwner;
45
    }
46
47
    /**
48
     * @return int
49
     */
50 1
    public function getUpdatedAt() :?int
51
    {
52 1
        return $this->updatedAt;
53
    }
54
55
    /**
56
     * @return int
57
     */
58 1
    public function getArchivedAt() :?int
59
    {
60 1
        return $this->archivedAt;
61
    }
62
63
    /**
64
     * @return bool
65
     */
66 1
    public function isDeleted() : bool
67
    {
68 1
        return $this->isDeleted;
69
    }
70
}
71