Total Complexity | 4 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class PathTransform |
||
16 | { |
||
17 | use TPathTransform; |
||
18 | |||
19 | /** @var IPATranslations */ |
||
20 | protected $lang = null; |
||
21 | |||
22 | 40 | public static function get(IPATranslations $lang = null): self |
|
23 | { |
||
24 | 40 | return new self($lang); |
|
25 | } |
||
26 | |||
27 | 47 | public function __construct(IPATranslations $lang = null) |
|
28 | { |
||
29 | 47 | $this->lang = $lang ?: new Translations(); |
|
30 | 47 | } |
|
31 | |||
32 | 2 | protected function noDirectoryDelimiterSet(): string |
|
35 | } |
||
36 | } |
||
37 |