We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 17 | abstract class AbstractResolver implements ResolverInterface |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var array |
||
| 21 | */ |
||
| 22 | private $solutions = []; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var array |
||
| 26 | */ |
||
| 27 | private $solutionOptions = []; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var CacheInterface |
||
| 31 | */ |
||
| 32 | protected $cache; |
||
| 33 | |||
| 34 | 41 | public function __construct(CacheInterface $cache = null) |
|
| 38 | |||
| 39 | 41 | public function addSolution($name, $solution, $options = []) |
|
| 52 | |||
| 53 | /** |
||
| 54 | * @return array |
||
| 55 | */ |
||
| 56 | public function getSolutions() |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @param $name |
||
| 63 | * |
||
| 64 | * @return mixed |
||
| 65 | */ |
||
| 66 | 41 | public function getSolution($name) |
|
| 70 | |||
| 71 | /** |
||
| 72 | * @param $name |
||
| 73 | * |
||
| 74 | * @return mixed |
||
| 75 | */ |
||
| 76 | 17 | public function getSolutionOptions($name) |
|
| 80 | |||
| 81 | /** |
||
| 82 | * @param $input |
||
| 83 | * |
||
| 84 | * @return mixed |
||
| 85 | */ |
||
| 86 | abstract public function resolve($input); |
||
| 87 | |||
| 88 | /** |
||
| 89 | * @param mixed $solution |
||
| 90 | * |
||
| 91 | * @return bool |
||
| 92 | */ |
||
| 93 | 41 | protected function supportsSolution($solution) |
|
| 99 | |||
| 100 | /** |
||
| 101 | * default return null to accept mixed type. |
||
| 102 | * |
||
| 103 | * @return null|string supported class name |
||
| 104 | */ |
||
| 105 | 33 | protected function supportedSolutionClass() |
|
| 109 | } |
||
| 110 |