Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
25 | public function parseXml(SimpleXMLElement $xml): OfxMovement |
||
26 | { |
||
27 | $this->type = (string) $xml->TRNTYPE; |
||
28 | $this->document = (string) $xml->FITID; |
||
29 | $this->description = (string) $xml->MEMO; |
||
30 | $this->amount = (string) $xml->TRNAMT; |
||
31 | $this->dueDate = (string) $xml->DTPOSTED; |
||
32 | |||
33 | return new OfxMovement($this->extractType(), $this->extractDocument(), $this->extractDescription(), $this->extractAmount(), $this->extractDueDate()); |
||
34 | } |
||
35 | |||
46 |