ISOCurrenciesProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 20
c 0
b 0
f 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A provideAvailableCurrencies() 0 4 1
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