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