| Conditions | 5 |
| Paths | 12 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | protected function getInformationElements() : array |
||
| 32 | { |
||
| 33 | $informationElements = []; |
||
| 34 | |||
| 35 | $availableInformationElements = [ |
||
| 36 | 'text.creditor' => $this->qrBill->getCreditorInformation()->getFormattedIban() . "\n" . $this->qrBill->getCreditor()->getFullAddress(), |
||
| 37 | 'text.reference' => $this->qrBill->getPaymentReference()->getFormattedReference(), |
||
| 38 | 'text.additionalInformation' => $this->qrBill->getAdditionalInformation() ? $this->qrBill->getAdditionalInformation()->getMessage() : null, |
||
| 39 | 'text.payableBy' => $this->qrBill->getUltimateDebtor() ? $this->qrBill->getUltimateDebtor()->getFullAddress() : null, |
||
| 40 | ]; |
||
| 41 | |||
| 42 | foreach($availableInformationElements as $key => $content) { |
||
| 43 | if ($content) { |
||
| 44 | $informationElements[$key] = $content; |
||
| 45 | } |
||
| 46 | } |
||
| 47 | |||
| 48 | return $informationElements; |
||
| 49 | } |
||
| 58 | } |