| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | public function beforeAmountNode(AmountNode $node) |
||
| 35 | { |
||
| 36 | try { |
||
| 37 | $node->setAttribute( |
||
| 38 | 'amount', |
||
| 39 | SEK::createFromSignalString($node->getValue()) |
||
| 40 | ); |
||
| 41 | } catch (AmountException $e) { |
||
| 42 | $this->addError( |
||
| 43 | "Invalid signaled amount %s on line %s", |
||
| 44 | $node->getValue(), |
||
| 45 | (string)$node->getLineNr() |
||
| 46 | ); |
||
| 47 | } |
||
| 48 | } |
||
| 49 | } |
||
| 50 |