Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
15 | final class FileDependency extends Dependency |
||
16 | { |
||
17 | private $fileName; |
||
18 | |||
19 | /** |
||
20 | * @param string $fileName the file path or [path alias](guide:concept-aliases) whose last modification time is used to |
||
21 | * check if the dependency has been changed. |
||
22 | */ |
||
23 | public function __construct(string $fileName) |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * Generates the data needed to determine if dependency has been changed. |
||
30 | * This method returns the file's last modification time. |
||
31 | * @param CacheInterface $cache the cache component that is currently evaluating this dependency |
||
32 | * @return mixed the data needed to determine if dependency has been changed. |
||
33 | * @throws InvalidConfigException if {@see fileName} is not set |
||
34 | */ |
||
35 | protected function generateDependencyData(CacheInterface $cache) |
||
45 |