1 | <?php |
||
8 | class FileSet |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | protected $rootDirectory; |
||
14 | |||
15 | /** |
||
16 | * @var Matcher |
||
17 | */ |
||
18 | protected $matcher; |
||
19 | |||
20 | /** |
||
21 | * @var array |
||
22 | */ |
||
23 | protected $options; |
||
24 | |||
25 | /** |
||
26 | * @param string $rootDirectory |
||
27 | * @param Matcher $matcher |
||
28 | * @param array $options |
||
29 | */ |
||
30 | public function __construct($rootDirectory, Matcher $matcher, array $options = array()) |
||
36 | |||
37 | /** |
||
38 | * Retrieve files match by user pattern |
||
39 | * |
||
40 | * @return FileInfo[] |
||
41 | */ |
||
42 | public function getFiles() |
||
46 | |||
47 | /** |
||
48 | * Retrieve options associated to this pattern |
||
49 | * |
||
50 | * @param null $key |
||
51 | * |
||
52 | * @return array |
||
53 | */ |
||
54 | public function getOptions($key = null) |
||
66 | } |
||
67 |