Completed
Push — master ( d22c34...cd27e7 )
by Mārtiņš
02:11
created

IdentityCollection::getParentId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Palladium\Entity;
4
5
use Palladium\Component\Collection;
6
7
class IdentityCollection extends Collection
8
{
9
10
    private $accountId;
11
    private $parentId;
12
    private $type;
13
    private $status;
14
15
16
    /**
17
     * @codeCoverageIgnore
18
     */
19
    protected function buildEntity()
20
    {
21
        return new Identity;
22
    }
23
24
25
    /**
26
     * @codeCoverageIgnore
27
     */
28
    public function forAccountId($accountId)
29
    {
30
        $this->accountId = (int) $accountId;
31
    }
32
33
34
    /**
35
     * @codeCoverageIgnore
36
     */
37
    public function getAccountId()
38
    {
39
        return $this->accountId;
40
    }
41
42
43
    /**
44
     * @codeCoverageIgnore
45
     */
46
    public function forParentId($parentId)
47
    {
48
        $this->parentId = (int) $parentId;
49
    }
50
51
52
    /**
53
     * @codeCoverageIgnore
54
     */
55
    public function getParentId()
56
    {
57
        return $this->parentId;
58
    }
59
60
61
    /**
62
     * @codeCoverageIgnore
63
     */
64
    public function forType($type)
65
    {
66
        $this->type = (int) $type;
67
    }
68
69
70
    /**
71
     * @codeCoverageIgnore
72
     */
73
    public function getType()
74
    {
75
        return $this->type;
76
    }
77
78
79
    /**
80
     * @codeCoverageIgnore
81
     */
82
    public function forStatus($status)
83
    {
84
        $this->status = (int) $status;
85
    }
86
87
88
    /**
89
     * @codeCoverageIgnore
90
     */
91
    public function getStatus()
92
    {
93
        return $this->status;
94
    }
95
}
96