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 | 104 | public function addSolution($id, $solutionOrFactory, array $aliases = [], array $options = []) |
|
| 38 | |||
| 39 | 102 | public function hasSolution($id) |
|
| 45 | |||
| 46 | /** |
||
| 47 | * @param $id |
||
| 48 | * |
||
| 49 | * @return mixed |
||
| 50 | */ |
||
| 51 | 97 | public function getSolution($id) |
|
| 55 | |||
| 56 | /** |
||
| 57 | * @return array |
||
| 58 | */ |
||
| 59 | 5 | public function getSolutions() |
|
| 63 | |||
| 64 | 5 | public function getSolutionAliases($id) |
|
| 68 | |||
| 69 | /** |
||
| 70 | * @param $id |
||
| 71 | * |
||
| 72 | * @return mixed |
||
| 73 | */ |
||
| 74 | 50 | public function getSolutionOptions($id) |
|
| 80 | |||
| 81 | /** |
||
| 82 | * @param string $id |
||
| 83 | * |
||
| 84 | * @return mixed |
||
| 85 | */ |
||
| 86 | 102 | private function loadSolution($id) |
|
| 103 | |||
| 104 | 104 | private function addAliases($id, $aliases) |
|
| 110 | |||
| 111 | 102 | private function resolveAlias($alias) |
|
| 115 | |||
| 116 | /** |
||
| 117 | * @return mixed[] |
||
| 118 | */ |
||
| 119 | 5 | private function loadSolutions() |
|
| 127 | |||
| 128 | /** |
||
| 129 | * @param mixed $solution |
||
| 130 | * |
||
| 131 | * @return bool |
||
| 132 | */ |
||
| 133 | 98 | protected function supportsSolution($solution) |
|
| 139 | |||
| 140 | 98 | protected function checkSolution($id, $solution) |
|
| 148 | |||
| 149 | /** |
||
| 150 | * default return null to accept mixed type. |
||
| 151 | * |
||
| 152 | * @return null|string supported class name |
||
| 153 | */ |
||
| 154 | 49 | protected function supportedSolutionClass() |
|
| 158 | } |
||
| 159 |