| 1 | <?php |
||
| 15 | class FlawDetector |
||
| 16 | { |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var array |
||
| 20 | */ |
||
| 21 | protected $config; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var Bootstrapper |
||
| 25 | */ |
||
| 26 | protected $bootstrapper; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param Bootstrapper $bootstrapper |
||
| 30 | * @param array $config |
||
| 31 | */ |
||
| 32 | public function __construct(Bootstrapper $bootstrapper, array $config) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @param Node[]|null $ast |
||
| 40 | * @return array |
||
| 41 | */ |
||
| 42 | public function analyze($ast) |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @return array |
||
| 68 | */ |
||
| 69 | protected function checkers() |
||
| 73 | } |
||
| 74 |