Total Complexity | 6 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | class FileCreatedAfterCheck implements Check |
||
19 | { |
||
20 | const IDENTIFIER = 'base:files:fileCreatedAfter'; |
||
21 | |||
22 | private $directory; |
||
23 | |||
24 | private $pattern; |
||
25 | |||
26 | /** |
||
27 | * @var \DateTime |
||
28 | */ |
||
29 | private $date; |
||
30 | |||
31 | public function run() |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * @param string $directory the directory where to look for the file |
||
48 | * @param \DateTime $date the date the file must be newer than |
||
49 | * @param string $pattern if not all files should be analyzed there can be set a filter |
||
50 | */ |
||
51 | public function init($directory, \DateTime $date, $pattern = '*') |
||
56 | } |
||
57 | |||
58 | public function getIdentifier() |
||
63 |