| Conditions | 3 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 45 | protected function loadInvTran(SimpleXMLElement $node) |
||
| 46 | { |
||
| 47 | // <INVTRAN> |
||
| 48 | // - REQUIRED: <FITID>, <DTTRADE> |
||
| 49 | // - all others optional |
||
| 50 | $this->uniqueId = (string) $node->FITID; |
||
| 51 | $this->tradeDate = Utils::createDateTimeFromStr($node->DTTRADE); |
||
| 52 | if (isset($node->DTSETTLE)) { |
||
| 53 | $this->settlementDate = Utils::createDateTimeFromStr($node->DTSETTLE); |
||
| 54 | } |
||
| 55 | if (isset($node->MEMO)) { |
||
| 56 | $this->memo = (string) $node->MEMO; |
||
| 57 | } |
||
| 58 | |||
| 59 | return $this; |
||
| 60 | } |
||
| 62 |