Total Complexity | 5 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
20 | final class Settings |
||
21 | { |
||
22 | private string $uuid; |
||
23 | private string $locale; |
||
24 | private string $currency; |
||
25 | |||
26 | public function __construct(SettingsUuid $uuid, Locale $locale, Currency $currency) |
||
27 | { |
||
28 | $this->uuid = $uuid->toString(); |
||
29 | $this->locale = $locale->getValue(); |
||
30 | $this->currency = $currency->getValue(); |
||
31 | } |
||
32 | |||
33 | public static function create(SettingsUuid $uuid, Locale $locale, Currency $currency): self |
||
34 | { |
||
35 | return new self($uuid, $locale, $currency); |
||
36 | } |
||
37 | |||
38 | public function uuid(): string |
||
41 | } |
||
42 | |||
43 | public function locale(): string |
||
46 | } |
||
47 | |||
48 | public function currency(): string |
||
53 |