Total Complexity | 9 |
Total Lines | 87 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class IdentityCollection extends Collection |
||
9 | { |
||
10 | |||
11 | private $accountId; |
||
12 | private $parentId; |
||
13 | private $type; |
||
14 | private $status; |
||
15 | |||
16 | |||
17 | /** |
||
18 | * @codeCoverageIgnore |
||
19 | */ |
||
20 | protected function buildEntity(): HasId |
||
21 | { |
||
22 | return new Identity; |
||
23 | } |
||
24 | |||
25 | |||
26 | /** |
||
27 | * @codeCoverageIgnore |
||
28 | */ |
||
29 | public function forAccountId(int $accountId) |
||
30 | { |
||
31 | $this->accountId = $accountId; |
||
32 | } |
||
33 | |||
34 | |||
35 | /** |
||
36 | * @codeCoverageIgnore |
||
37 | */ |
||
38 | public function getAccountId() |
||
41 | } |
||
42 | |||
43 | |||
44 | /** |
||
45 | * @codeCoverageIgnore |
||
46 | */ |
||
47 | public function forParentId(int $parentId) |
||
48 | { |
||
49 | $this->parentId = $parentId; |
||
50 | } |
||
51 | |||
52 | |||
53 | /** |
||
54 | * @codeCoverageIgnore |
||
55 | */ |
||
56 | public function getParentId() |
||
57 | { |
||
58 | return $this->parentId; |
||
59 | } |
||
60 | |||
61 | |||
62 | /** |
||
63 | * @codeCoverageIgnore |
||
64 | */ |
||
65 | public function forType(int $type = null) |
||
66 | { |
||
67 | $this->type = $type; |
||
68 | } |
||
69 | |||
70 | |||
71 | /** |
||
72 | * @codeCoverageIgnore |
||
73 | */ |
||
74 | public function getType() |
||
77 | } |
||
78 | |||
79 | |||
80 | /** |
||
81 | * @codeCoverageIgnore |
||
82 | */ |
||
83 | public function forStatus(int $status) |
||
84 | { |
||
85 | $this->status = $status; |
||
86 | } |
||
87 | |||
88 | |||
89 | /** |
||
90 | * @codeCoverageIgnore |
||
91 | */ |
||
92 | public function getStatus() |
||
95 | } |
||
96 | } |
||
97 |