Total Complexity | 3 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class File implements FileAction |
||
8 | { |
||
9 | protected $filename; |
||
10 | protected $callable; |
||
11 | |||
12 | /** |
||
13 | * @param string $filename |
||
14 | * @param callable|null $callable |
||
15 | */ |
||
16 | public function __construct($filename, $callable = null) |
||
17 | { |
||
18 | $this->filename = $filename; |
||
19 | $this->callable = $callable; |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * @return string|null the file with sql statements to execute |
||
24 | */ |
||
25 | public function getFilename() |
||
26 | { |
||
27 | return $this->filename; |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * The returned function should accept a single parameter, of type string |
||
32 | * @return callable|null |
||
33 | */ |
||
34 | public function getResultsFilterCallable() |
||
37 | } |
||
38 | } |
||
39 |