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

Base::isOwner()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 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