| Conditions | 3 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | public function __construct(array $registeredRates) |
||
| 14 | { |
||
| 15 | $this->registry = new BaseRatesConfigurationRegistry(); |
||
| 16 | |||
| 17 | foreach ($registeredRates as $registeredRate) { |
||
| 18 | $this->add( new Configuration( |
||
| 19 | $registeredRate['currency_code'], |
||
| 20 | $registeredRate['rate_type'], |
||
| 21 | $registeredRate['source'], |
||
| 22 | !empty($registeredRate['extra']) ? $registeredRate['extra'] : array() |
||
| 23 | )); |
||
| 24 | } |
||
| 25 | } |
||
| 26 | |||
| 51 |