| Total Complexity | 6 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class I18nStringsBatchManager |
||
| 6 | { |
||
| 7 | public static string $defaultDirectory = ''; |
||
| 8 | |||
| 9 | protected array $instances = []; |
||
| 10 | |||
| 11 | 2 | public static function setDefaultDirectoryPrefix(string $defaultDirectory) |
|
| 12 | { |
||
| 13 | 2 | static::$defaultDirectory = $defaultDirectory; |
|
| 14 | } |
||
| 15 | |||
| 16 | 6 | public function batch(?string $directory = null): I18nStringsBatch |
|
| 17 | { |
||
| 18 | 6 | return $this->resolveBatch($directory ?? static::$defaultDirectory); |
|
| 19 | } |
||
| 20 | |||
| 21 | 6 | protected function resolveBatch(string $directory): I18nStringsBatch |
|
| 28 | } |
||
| 29 | |||
| 30 | 6 | public function __call(string $method, array $arguments) |
|
| 38 | } |
||
| 39 | } |
||
| 40 |