Completed
Push — master ( 116dd8...98663d )
by Al3x
02:26
created

Base   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 63
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 0
dl 0
loc 63
c 0
b 0
f 0
rs 10

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