| Total Complexity | 4 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class InclusiveListResolver implements \Vaimo\ComposerPatches\Interfaces\ListResolverInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var \Vaimo\ComposerPatches\Interfaces\ListResolverInterface |
||
| 12 | */ |
||
| 13 | private $baseResolver; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var \Vaimo\ComposerPatches\Patch\DefinitionList\Analyser |
||
| 17 | */ |
||
| 18 | private $patchListAnalyser; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var \Vaimo\ComposerPatches\Utils\PatchListUtils |
||
| 22 | */ |
||
| 23 | private $patchListUtils; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param \Vaimo\ComposerPatches\Interfaces\ListResolverInterface $baseResolver |
||
| 27 | */ |
||
| 28 | public function __construct( |
||
| 29 | \Vaimo\ComposerPatches\Interfaces\ListResolverInterface $baseResolver |
||
| 30 | ) { |
||
| 31 | $this->baseResolver = $baseResolver; |
||
| 32 | |||
| 33 | $this->patchListAnalyser = new \Vaimo\ComposerPatches\Patch\DefinitionList\Analyser(); |
||
| 34 | $this->patchListUtils = new \Vaimo\ComposerPatches\Utils\PatchListUtils(); |
||
| 35 | } |
||
| 36 | |||
| 37 | public function resolvePatchesQueue(array $patches) |
||
| 38 | { |
||
| 39 | $matches = $this->baseResolver->resolvePatchesQueue($patches); |
||
| 40 | $targets = $this->patchListAnalyser->getAllTargets($matches); |
||
| 41 | |||
| 42 | return $this->patchListUtils->mergeLists( |
||
| 43 | $this->patchListUtils->filterListByTargets($patches, $targets), |
||
| 44 | $matches |
||
| 45 | ); |
||
| 46 | } |
||
| 47 | |||
| 48 | public function resolveRelevantPatches(array $patches, array $subset) |
||
| 51 | } |
||
| 52 | |||
| 53 | public function resolveInitialState(array $patches, array $state) |
||
| 58 |