We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
1 | <?php |
||
14 | abstract class AbstractResolver implements ResolverInterface |
||
15 | { |
||
16 | /** |
||
17 | * @var array |
||
18 | */ |
||
19 | private $solutions = []; |
||
20 | |||
21 | /** |
||
22 | * @var array |
||
23 | */ |
||
24 | private $solutionOptions = []; |
||
25 | |||
26 | /** |
||
27 | * @var array |
||
28 | */ |
||
29 | private $fullyLoadedSolutions = []; |
||
30 | |||
31 | 34 | public function addSolution($name, callable $solutionFunc, array $solutionFuncArgs = [], array $options = []) |
|
44 | |||
45 | /** |
||
46 | * @param $name |
||
47 | * |
||
48 | * @return mixed |
||
49 | */ |
||
50 | 60 | public function getSolution($name) |
|
54 | |||
55 | /** |
||
56 | * @return array |
||
57 | */ |
||
58 | 28 | public function getSolutions() |
|
62 | |||
63 | /** |
||
64 | * @param $name |
||
65 | * |
||
66 | * @return mixed |
||
67 | */ |
||
68 | 44 | public function getSolutionOptions($name) |
|
72 | |||
73 | /** |
||
74 | * @param string $name |
||
75 | * |
||
76 | * @return mixed |
||
77 | */ |
||
78 | 62 | private function loadSolution($name) |
|
91 | |||
92 | /** |
||
93 | * @return mixed[] |
||
94 | */ |
||
95 | 28 | private function loadSolutions() |
|
103 | |||
104 | /** |
||
105 | * @param mixed $solution |
||
106 | */ |
||
107 | 18 | protected function postLoadSolution($solution) |
|
110 | |||
111 | /** |
||
112 | * @param mixed $solution |
||
113 | * |
||
114 | * @return bool |
||
115 | */ |
||
116 | 34 | protected function supportsSolution($solution) |
|
122 | |||
123 | 34 | protected function checkSolution($name, $solution) |
|
131 | |||
132 | /** |
||
133 | * default return null to accept mixed type. |
||
134 | * |
||
135 | * @return null|string supported class name |
||
136 | */ |
||
137 | 18 | protected function supportedSolutionClass() |
|
141 | } |
||
142 |