Passed
Pull Request — develop (#172)
by
unknown
03:18 queued 01:42
created

OutputSettings::locale()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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 Company\Application\Settings\DTO;
15
16
use Company\Domain\Model\VO\Currency;
17
use Company\Domain\Model\VO\Locale;
18
use Core\Domain\Common\Model\VO\ResourceUuid;
19
20
class OutputSettings
21
{
22
    private string $uuid;
23
    private string $locale;
24
    private string $currency;
25
    private string $symbol;
26
27
    public function __construct(ResourceUuid $uuid, Locale $locale, Currency $currency)
28
    {
29
        $this->uuid = $uuid->toString();
30
        $this->locale = $locale->toString();
31
        $this->currency = $currency->currency();
32
        $this->symbol = $currency->symbol();
33
    }
34
35
    public function uuid(): string
36
    {
37
        return $this->uuid;
38
    }
39
40
    public function locale(): string
41
    {
42
        return $this->locale;
43
    }
44
45
    public function currency(): string
46
    {
47
        return $this->currency;
48
    }
49
50
    public function symbol(): string
51
    {
52
        return $this->symbol;
53
    }
54
}
55