Completed
Push — master ( 3e3269...414f6c )
by Valentyn
05:10
created

LocaleService::getDefaultLocale()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
declare(strict_types=1);
3
4
namespace App\Service;
5
6
class LocaleService
7
{
8
    private $locale;
9
    private $locales;
10
11
    public function __construct(string $defaultLocale, array $locales)
12
    {
13
        $this->locale = $defaultLocale;
14
        $this->locales = $locales;
15
    }
16
17
    public function getDefaultLocale(): string
18
    {
19
        return $this->locale;
20
    }
21
22
    public function getLocales(): array
23
    {
24
        return $this->locales;
25
    }
26
}