Total Complexity | 3 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 4 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | final class Localization implements Localizationable |
||
11 | { |
||
12 | use Containable; |
||
13 | |||
14 | /** @var \Helldar\LaravelLangPublisher\Contracts\Pathable */ |
||
15 | protected $path; |
||
16 | |||
17 | /** @var \Helldar\LaravelLangPublisher\Contracts\Processor */ |
||
18 | protected $processor; |
||
19 | |||
20 | /** @var array */ |
||
21 | protected $result = []; |
||
22 | |||
23 | 78 | public function setPath(Pathable $path): Localizationable |
|
24 | { |
||
25 | 78 | $this->path = $path; |
|
26 | |||
27 | 78 | return $this; |
|
28 | } |
||
29 | |||
30 | 78 | public function setProcessor(Processor $processor): Localizationable |
|
31 | { |
||
32 | 78 | $this->processor = $processor; |
|
33 | |||
34 | 78 | return $this; |
|
35 | } |
||
36 | |||
37 | 78 | public function run(string $locale, bool $force = false): array |
|
43 | } |
||
44 | } |
||
45 |