Conditions | 2 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
79 | static public function createFromXML(\SimpleXMLElement $xmlElement = null, \DateTime $date) |
||
|
|||
80 | { |
||
81 | return new ExchangeRate( |
||
82 | (int)$xmlElement->attributes()[0], |
||
83 | (int)$xmlElement->NumCode, |
||
84 | (string)$xmlElement->CharCode, |
||
85 | (int)$xmlElement->Scale, |
||
86 | (string)($xmlElement->Name ?: $xmlElement->QuotName), |
||
87 | (float)$xmlElement->Rate, |
||
88 | $date |
||
89 | ); |
||
90 | } |
||
91 | |||
151 | } |