provideAvailableCurrencies()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace SyliusCart\Domain\Adapter\AvailableCurrencies;
6
7
use Money\Currencies;
8
use Money\Currencies\ISOCurrencies;
9
10
/**
11
 * @author Arkadiusz Krakowiak <[email protected]>
12
 */
13
final class ISOCurrenciesProvider implements AvailableCurrenciesProviderInterface
14
{
15
    /**
16
     * @var ISOCurrencies
17
     */
18
    private $isoCurrencies;
19
20
    public function __construct()
21
    {
22
        $this->isoCurrencies = new ISOCurrencies();
23
    }
24
25
    /**
26
     * {@inheritdoc}
27
     */
28
    public function provideAvailableCurrencies(): Currencies
29
    {
30
        return $this->isoCurrencies;
31
    }
32
}
33