Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
24 | 2 | public function getMoneyFactory(string $isoCode): MoneyFactoryContract |
|
25 | { |
||
26 | 2 | if (!isset($this->moneyFactories[$isoCode])) { |
|
27 | 2 | $this->moneyFactories[$isoCode] = new MoneyFactory( |
|
28 | 2 | $this->currencyFactory->buildFromISOCode($isoCode) |
|
29 | ); |
||
30 | } |
||
31 | |||
32 | 2 | return $this->moneyFactories[$isoCode]; |
|
33 | } |
||
34 | |||
41 |