Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | public function __construct($currencyCode, $rateType, $source, array $extraConfiguration = array()) |
||
31 | { |
||
32 | if (!CurrencyCode::exists($currencyCode)) { |
||
33 | throw new UnknownCurrencyCodeException(sprintf('Unknown currency code "%s".', $currencyCode)); |
||
34 | } |
||
35 | |||
36 | $this->currencyCode = $currencyCode; |
||
37 | $this->rateType = $rateType; |
||
38 | $this->source = $source; |
||
39 | $this->extraConfiguration = $extraConfiguration; |
||
40 | } |
||
41 | |||
74 |