| 1 | <?php |
||
| 7 | trait Filesystem |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Create all directories listed in directories array. |
||
| 11 | * |
||
| 12 | * @param array $directories |
||
| 13 | */ |
||
| 14 | protected function makeDirectoryStructure(array $directories) |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Write contents to path. |
||
| 25 | * |
||
| 26 | * @param string $path |
||
| 27 | * @param string $contents |
||
| 28 | * |
||
| 29 | * @throws WriteError |
||
| 30 | */ |
||
| 31 | protected function writeFile($path, $contents) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Guess a namespace based on a path. |
||
| 42 | * |
||
| 43 | * @param string $path |
||
| 44 | * |
||
| 45 | * @return string|null |
||
| 46 | */ |
||
| 47 | protected function guessNamespace($path) |
||
| 63 | } |
||
| 64 |