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 | 117 | public function addSolution(string $id, $solutionOrFactory, array $aliases = [], array $options = []) |
|
41 | |||
42 | 115 | public function hasSolution(string $id) |
|
48 | |||
49 | /** |
||
50 | * @param $id |
||
51 | * |
||
52 | * @return mixed |
||
53 | */ |
||
54 | 110 | 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 | 49 | public function getSolutionOptions(string $id) |
|
83 | |||
84 | /** |
||
85 | * @param string $id |
||
86 | * |
||
87 | * @return mixed |
||
88 | */ |
||
89 | 115 | private function loadSolution(string $id) |
|
106 | |||
107 | 117 | private function addAliases(string $id, array $aliases): void |
|
113 | |||
114 | 112 | private static function isSolutionFactory($solutionOrFactory) |
|
118 | |||
119 | 115 | private function resolveAlias(string $alias) |
|
123 | |||
124 | /** |
||
125 | * @return mixed[] |
||
126 | */ |
||
127 | 5 | private function loadSolutions(): array |
|
135 | |||
136 | /** |
||
137 | * @param mixed $solution |
||
138 | * |
||
139 | * @return bool |
||
140 | */ |
||
141 | 111 | protected function supportsSolution($solution): bool |
|
147 | |||
148 | 111 | protected function checkSolution(string $id, $solution): void |
|
156 | |||
157 | /** |
||
158 | * default return null to accept mixed type. |
||
159 | * |
||
160 | * @return null|string supported class name |
||
161 | */ |
||
162 | 53 | protected function supportedSolutionClass(): ?string |
|
166 | } |
||
167 |