1 | <?php |
||
8 | class FileModifiedChecker |
||
9 | { |
||
10 | /** |
||
11 | * @param string|array $fileName 文件的绝对路径 |
||
12 | */ |
||
13 | 21 | function __construct($fileName){ |
|
40 | /** |
||
41 | * 判断是否过期 |
||
42 | * @param mixed $data 从缓存中得到的数据 |
||
43 | * @param int $createdTime |
||
44 | * @return boolean |
||
45 | */ |
||
46 | 74 | public function __invoke($data, $createdTime){ |
|
54 | private $fileName=[]; //文件全路径 |
||
55 | } |
||
56 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.