We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
1 | <?php |
||
7 | abstract class AbstractResolver implements FluentResolverInterface |
||
8 | { |
||
9 | /** @var array */ |
||
10 | private $solutions = []; |
||
11 | |||
12 | private $aliases = []; |
||
13 | |||
14 | /** @var array */ |
||
15 | private $solutionOptions = []; |
||
16 | |||
17 | /** @var array */ |
||
18 | private $fullyLoadedSolutions = []; |
||
19 | |||
20 | 115 | public function addSolution(string $id, $solutionOrFactory, array $aliases = [], array $options = []) |
|
41 | |||
42 | 113 | public function hasSolution(string $id) |
|
48 | |||
49 | /** |
||
50 | * @param $id |
||
51 | * |
||
52 | * @return mixed |
||
53 | */ |
||
54 | 108 | public function getSolution(string $id) |
|
58 | |||
59 | /** |
||
60 | * @return array |
||
61 | */ |
||
62 | 5 | public function getSolutions(): array |
|
66 | |||
67 | 5 | public function getSolutionAliases(string $id) |
|
71 | |||
72 | /** |
||
73 | * @param $id |
||
74 | * |
||
75 | * @return mixed |
||
76 | */ |
||
77 | 47 | public function getSolutionOptions(string $id) |
|
83 | |||
84 | 51 | protected function onLoadSolution($solution): void |
|
87 | |||
88 | /** |
||
89 | * @param string $id |
||
90 | * |
||
91 | * @return mixed |
||
92 | */ |
||
93 | 113 | private function loadSolution(string $id) |
|
111 | |||
112 | 115 | private function addAliases(string $id, array $aliases): void |
|
118 | |||
119 | 110 | private static function isSolutionFactory($solutionOrFactory) |
|
123 | |||
124 | 113 | private function resolveAlias(string $alias) |
|
128 | |||
129 | /** |
||
130 | * @return mixed[] |
||
131 | */ |
||
132 | 5 | private function loadSolutions(): array |
|
140 | |||
141 | /** |
||
142 | * @param mixed $solution |
||
143 | * |
||
144 | * @return bool |
||
145 | */ |
||
146 | 109 | protected function supportsSolution($solution): bool |
|
152 | |||
153 | 109 | protected function checkSolution(string $id, $solution): void |
|
161 | |||
162 | /** |
||
163 | * default return null to accept mixed type. |
||
164 | * |
||
165 | * @return null|string supported class name |
||
166 | */ |
||
167 | 51 | protected function supportedSolutionClass(): ?string |
|
171 | } |
||
172 |