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 | 35 | public function addSolution($name, callable $solutionFunc, array $solutionFuncArgs = [], array $options = []) |
|
| 44 | |||
| 45 | 65 | public function hasSolution($name) |
|
| 49 | |||
| 50 | /** |
||
| 51 | * @param $name |
||
| 52 | * |
||
| 53 | * @return mixed |
||
| 54 | */ |
||
| 55 | 60 | public function getSolution($name) |
|
| 59 | |||
| 60 | /** |
||
| 61 | * @return array |
||
| 62 | */ |
||
| 63 | 19 | public function getSolutions() |
|
| 67 | |||
| 68 | /** |
||
| 69 | * @param $name |
||
| 70 | * |
||
| 71 | * @return mixed |
||
| 72 | */ |
||
| 73 | 44 | public function getSolutionOptions($name) |
|
| 77 | |||
| 78 | /** |
||
| 79 | * @param string $name |
||
| 80 | * |
||
| 81 | * @return mixed |
||
| 82 | */ |
||
| 83 | 65 | private function loadSolution($name) |
|
| 100 | |||
| 101 | /** |
||
| 102 | * @return mixed[] |
||
| 103 | */ |
||
| 104 | 19 | private function loadSolutions() |
|
| 112 | |||
| 113 | /** |
||
| 114 | * @param mixed $solution |
||
| 115 | */ |
||
| 116 | 18 | protected function postLoadSolution($solution) |
|
| 119 | |||
| 120 | /** |
||
| 121 | * @param mixed $solution |
||
| 122 | * |
||
| 123 | * @return bool |
||
| 124 | */ |
||
| 125 | 35 | protected function supportsSolution($solution) |
|
| 131 | |||
| 132 | 35 | protected function checkSolution($name, $solution) |
|
| 140 | |||
| 141 | /** |
||
| 142 | * default return null to accept mixed type. |
||
| 143 | * |
||
| 144 | * @return null|string supported class name |
||
| 145 | */ |
||
| 146 | 18 | protected function supportedSolutionClass() |
|
| 150 | } |
||
| 151 |