Conditions | 3 |
Paths | 4 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | function xmlSerialize(Writer $writer) |
||
|
|||
29 | { |
||
30 | $writer->write([ |
||
31 | SchemaNS::CBC . 'ID' => $this->ID, |
||
32 | SchemaNS::CBC . 'PaymentMeansID' => $this->PaymentMeansID |
||
33 | ]); |
||
34 | if ($this->Amount) { |
||
35 | $writer->write([ |
||
36 | $this->Amount |
||
37 | ]); |
||
38 | } |
||
39 | if ($this->PaymentDueDate) { |
||
40 | $writer->write([ |
||
41 | SchemaNS::CBC . 'PaymentDueDate' => $this->PaymentDueDate->format('Y-m-d') |
||
42 | ]); |
||
58 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.