1 | <?php |
||
7 | class WindowsPathBuilder implements PathBuilderInterface |
||
8 | { |
||
9 | use WindowsFileAppenderTrait; |
||
10 | use WindowsExtensionAppenderTrait; |
||
11 | |||
12 | /** @type array The base paths for files. */ |
||
13 | private $_paths; |
||
14 | |||
15 | /** @type array The supported extensions for files. */ |
||
16 | private $_extensions; |
||
17 | |||
18 | /** |
||
19 | * Initialize the path builder. |
||
20 | * |
||
21 | * @param array $paths The base paths for files. |
||
22 | * @param array $extensions The supported extensions for files. |
||
23 | */ |
||
24 | public function __construct(array $paths, array $extensions) |
||
29 | |||
30 | /** |
||
31 | * Gets the permutations of paths to the given file. |
||
32 | * |
||
33 | * @param string $file The file to build paths to. |
||
34 | * @return array The permutations of file paths. |
||
35 | */ |
||
36 | public function getPermutations($file) |
||
42 | } |
||
43 |