| Total Complexity | 7 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Coverage | 83.33% |
| Changes | 2 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 14 | class AnyDependency extends Dependency |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var Dependency[] |
||
| 18 | */ |
||
| 19 | private $dependencies; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param Dependency[] $dependencies list of dependencies that this dependency is composed of. |
||
| 23 | * Each array element must be a dependency object. |
||
| 24 | */ |
||
| 25 | 1 | public function __construct(array $dependencies = []) |
|
| 28 | } |
||
| 29 | |||
| 30 | 1 | public function evaluateDependency(CacheInterface $cache): void |
|
| 31 | { |
||
| 32 | 1 | foreach ($this->dependencies as $dependency) { |
|
| 33 | 1 | $dependency->evaluateDependency($cache); |
|
| 34 | } |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @codeCoverageIgnore method is not used |
||
| 39 | * |
||
| 40 | * @param CacheInterface $cache |
||
| 41 | * @return null |
||
| 42 | * @suppress PhanUnusedProtectedMethodParameter |
||
| 43 | */ |
||
| 44 | protected function generateDependencyData(CacheInterface $cache) |
||
| 45 | { |
||
| 46 | return null; |
||
| 47 | } |
||
| 48 | |||
| 49 | 1 | public function isChanged(CacheInterface $cache): bool |
|
| 58 | } |
||
| 59 | } |
||
| 60 |