| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 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 | 1 | 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 | 1 | protected function generateDependencyData(CacheInterface $cache) |
|
| 41 |