Conditions | 4 |
Paths | 8 |
Total Lines | 17 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
41 | public function toArray(): array |
||
42 | { |
||
43 | $data = []; |
||
44 | |||
45 | if ($this->payerSelected) { |
||
46 | $data['payer_selected'] = $this->payerSelected; |
||
47 | } |
||
48 | |||
49 | if ($this->payeePreferred) { |
||
50 | $data['payee_preferred'] = $this->payeePreferred; |
||
51 | } |
||
52 | |||
53 | if ($this->standardEntryClassCode) { |
||
54 | $data['standard_entry_class_code'] = $this->standardEntryClassCode; |
||
55 | } |
||
56 | |||
57 | return $data; |
||
58 | } |
||
60 |