Passed
Push — develop ( 0d66a7...37c69c )
by Laurent
05:34 queued 02:39
created

ConfigureSettings::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the G.L.S.R. Apps package.
7
 *
8
 * (c) Dev-Int Création <[email protected]>.
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Administration\Domain\Settings\Command;
15
16
use Administration\Domain\Settings\Model\VO\Currency;
17
use Administration\Domain\Settings\Model\VO\Locale;
18
use Core\Domain\Protocol\Common\Command\CommandProtocol;
19
20
final class ConfigureSettings implements CommandProtocol
21
{
22
    private Locale $locale;
23
    private Currency $currency;
24
25
    public function __construct(Locale $locale, Currency $currency)
26
    {
27
        $this->locale = $locale;
28
        $this->currency = $currency;
29
    }
30
31
    public function locale(): Locale
32
    {
33
        return $this->locale;
34
    }
35
36
    public function currency(): Currency
37
    {
38
        return $this->currency;
39
    }
40
}
41