We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 5 | abstract class AbstractResolver implements FluentResolverInterface |
||
| 6 | { |
||
| 7 | /** @var array */ |
||
| 8 | private $solutions = []; |
||
| 9 | |||
| 10 | private $aliases = []; |
||
| 11 | |||
| 12 | /** @var array */ |
||
| 13 | private $solutionOptions = []; |
||
| 14 | |||
| 15 | /** @var array */ |
||
| 16 | private $fullyLoadedSolutions = []; |
||
| 17 | |||
| 18 | 111 | public function addSolution($id, $solutionOrFactory, array $aliases = [], array $options = []) |
|
| 39 | |||
| 40 | 109 | public function hasSolution($id) |
|
| 46 | |||
| 47 | /** |
||
| 48 | * @param $id |
||
| 49 | * |
||
| 50 | * @return mixed |
||
| 51 | */ |
||
| 52 | 104 | public function getSolution($id) |
|
| 56 | |||
| 57 | /** |
||
| 58 | * @return array |
||
| 59 | */ |
||
| 60 | 5 | public function getSolutions() |
|
| 64 | |||
| 65 | 5 | public function getSolutionAliases($id) |
|
| 69 | |||
| 70 | /** |
||
| 71 | * @param $id |
||
| 72 | * |
||
| 73 | * @return mixed |
||
| 74 | */ |
||
| 75 | 50 | public function getSolutionOptions($id) |
|
| 81 | |||
| 82 | /** |
||
| 83 | * @param string $id |
||
| 84 | * |
||
| 85 | * @return mixed |
||
| 86 | */ |
||
| 87 | 109 | private function loadSolution($id) |
|
| 104 | |||
| 105 | 111 | private function addAliases($id, $aliases) |
|
| 111 | |||
| 112 | 106 | private static function isSolutionFactory($solutionOrFactory) |
|
| 116 | |||
| 117 | 109 | private function resolveAlias($alias) |
|
| 121 | |||
| 122 | /** |
||
| 123 | * @return mixed[] |
||
| 124 | */ |
||
| 125 | 5 | private function loadSolutions() |
|
| 133 | |||
| 134 | /** |
||
| 135 | * @param mixed $solution |
||
| 136 | * |
||
| 137 | * @return bool |
||
| 138 | */ |
||
| 139 | 105 | protected function supportsSolution($solution) |
|
| 145 | |||
| 146 | 105 | protected function checkSolution($id, $solution) |
|
| 154 | |||
| 155 | /** |
||
| 156 | * default return null to accept mixed type. |
||
| 157 | * |
||
| 158 | * @return null|string supported class name |
||
| 159 | */ |
||
| 160 | 49 | protected function supportedSolutionClass() |
|
| 164 | } |
||
| 165 |