| Total Complexity | 4 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 14 | trait TFile |
||
| 15 | { |
||
| 16 | /** @var string[] */ |
||
| 17 | protected $presetPath = []; |
||
| 18 | |||
| 19 | 7 | protected function setFileAccessor(?IProcessFiles $file): void |
|
| 20 | { |
||
| 21 | 7 | FilesSingleton::getInstance()->setFileAccessor($file); |
|
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @throws MapperException |
||
| 26 | * @return IProcessFiles |
||
| 27 | */ |
||
| 28 | 7 | protected function getFileAccessor(): IProcessFiles |
|
| 29 | { |
||
| 30 | 7 | return FilesSingleton::getInstance()->getFilesAccessor(); |
|
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param string[] $path |
||
| 35 | */ |
||
| 36 | 2 | protected function setPath(array $path): void |
|
| 37 | { |
||
| 38 | 2 | $this->presetPath = $path; |
|
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return string[] |
||
| 43 | */ |
||
| 44 | 6 | protected function getPath(): array |
|
| 47 | } |
||
| 48 | } |
||
| 49 |