1 | <?php |
||
14 | class Analyzer |
||
15 | { |
||
16 | /** |
||
17 | * @var EventManager |
||
18 | */ |
||
19 | protected $eventManager; |
||
20 | |||
21 | /** |
||
22 | * @var []AnalyzerPassInterface[] |
||
23 | */ |
||
24 | protected $bindOnExpressions = []; |
||
25 | |||
26 | /** |
||
27 | * @var []AnalyzerPassInterface[] |
||
28 | */ |
||
29 | protected $bindOnStatements = []; |
||
30 | |||
31 | /** |
||
32 | * @param EventManager $eventManager |
||
33 | */ |
||
34 | 1 | public function __construct(EventManager $eventManager) |
|
38 | |||
39 | /** |
||
40 | * @param array $expressionPasses all the expression analyzers |
||
41 | * @throws \RuntimeException if the analyzer does not implement the required interface |
||
42 | */ |
||
43 | 1 | public function registerExpressionPasses(array $expressionPasses) |
|
60 | |||
61 | /** |
||
62 | * @param array $statementPasses all the statement analyzers |
||
63 | * @throws \RuntimeException if the analyzer does not implement the required interface |
||
64 | */ |
||
65 | 1 | public function registerStatementPasses(array $statementPasses) |
|
82 | |||
83 | /** |
||
84 | * binds the listeners |
||
85 | */ |
||
86 | 1 | public function bind() |
|
100 | } |
||
101 |