1 | <?php |
||
15 | trait InvoiceBankAccountTrait |
||
16 | { |
||
17 | /** |
||
18 | * @return SimpleXMLElement |
||
19 | * |
||
20 | * @codeCoverageIgnore |
||
21 | */ |
||
22 | abstract public function getData(); |
||
23 | |||
24 | /** |
||
25 | * Extracts the invoice bank account data if it exists |
||
26 | * |
||
27 | * @return array|null |
||
28 | */ |
||
29 | 5 | public function getInvoiceBankAccount() |
|
47 | |||
48 | /** |
||
49 | * Checks if the node has an invoice bank account node |
||
50 | * |
||
51 | * @return bool |
||
52 | */ |
||
53 | 5 | public function hasInvoiceBankAccount() |
|
59 | |||
60 | /** |
||
61 | * @param string $date Date with format 'Ymd' |
||
62 | * |
||
63 | * @return null|string Y-m-d or null |
||
64 | */ |
||
65 | 3 | private function formatDate($date) |
|
73 | } |
||
74 |