Conditions | 4 |
Paths | 8 |
Total Lines | 17 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 4 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
47 | 6 | public function toArray(): array |
|
48 | { |
||
49 | 6 | $data = []; |
|
50 | |||
51 | 6 | if ($this->payerSelected) { |
|
52 | 3 | $data['payer_selected'] = $this->payerSelected; |
|
53 | } |
||
54 | |||
55 | 6 | if ($this->payeePreferred) { |
|
56 | 2 | $data['payee_preferred'] = $this->payeePreferred; |
|
57 | } |
||
58 | |||
59 | 6 | if ($this->standardEntryClassCode) { |
|
60 | 2 | $data['standard_entry_class_code'] = $this->standardEntryClassCode; |
|
61 | } |
||
62 | |||
63 | 6 | return $data; |
|
64 | } |
||
66 |