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

CreateOutputSettings   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 8
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 6 1
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\Factory;
15
16
use Company\Application\Settings\DTO\OutputSettings;
17
use Company\Domain\Model\Settings;
18
19
class CreateOutputSettings
20
{
21
    public function create(Settings $settings): OutputSettings
22
    {
23
        return new OutputSettings(
24
            $settings->uuid(),
25
            $settings->locale(),
26
            $settings->currency()
27
        );
28
    }
29
}
30