Total Complexity | 2 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
24 | class FileDependency extends Dependency |
||
25 | { |
||
26 | /** |
||
27 | * @var string the file path or [path alias](guide:concept-aliases) whose last modification time is used to |
||
28 | * check if the dependency has been changed. |
||
29 | */ |
||
30 | public $fileName; |
||
31 | |||
32 | |||
33 | /** |
||
34 | * Generates the data needed to determine if dependency has been changed. |
||
35 | * This method returns the file's last modification time. |
||
36 | * @param CacheInterface $cache the cache component that is currently evaluating this dependency |
||
37 | * @return mixed the data needed to determine if dependency has been changed. |
||
38 | * @throws InvalidConfigException if [[fileName]] is not set |
||
39 | */ |
||
40 | protected function generateDependencyData($cache) |
||
52 |