1 | <?php |
||
11 | class Path implements FilterInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var string Regex pattern for file path |
||
15 | */ |
||
16 | protected $pattern; |
||
17 | |||
18 | /** |
||
19 | * {@inheritdoc} |
||
20 | */ |
||
21 | 4 | public function valid(File $file) |
|
25 | |||
26 | /** |
||
27 | * Set the file path pattern |
||
28 | * @param string $pattern Regex pattern for file path |
||
29 | */ |
||
30 | 4 | public function setPattern($pattern) |
|
34 | } |
||
35 |