Total Complexity | 1 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | class CallbackDependency extends Dependency |
||
22 | { |
||
23 | /** |
||
24 | * @var callable the PHP callback that will be called to determine if the dependency has been changed. |
||
25 | */ |
||
26 | public $callback; |
||
27 | |||
28 | |||
29 | /** |
||
30 | * Generates the data needed to determine if dependency has been changed. |
||
31 | * This method returns the result of the callback function. |
||
32 | * @param CacheInterface $cache the cache component that is currently evaluating this dependency |
||
33 | * @return mixed the data needed to determine if dependency has been changed. |
||
34 | */ |
||
35 | 2 | protected function generateDependencyData($cache) |
|
40 |