1 | <?php |
||
20 | class RuleBuilder { |
||
21 | /** |
||
22 | * @var ASTParser |
||
23 | */ |
||
24 | protected $parser; |
||
25 | |||
26 | /** |
||
27 | * @var Compiler |
||
28 | */ |
||
29 | protected $compiler; |
||
30 | |||
31 | /** |
||
32 | * @param V\Variable[] $predefined_variables |
||
33 | * @param R\Schema[] $schemas |
||
34 | * @param V\Property[] $properties |
||
35 | */ |
||
36 | public function __construct( array $predefined_variables |
||
42 | |||
43 | /** |
||
44 | * @return AST\Factory |
||
45 | */ |
||
46 | protected function build_factory() { |
||
49 | |||
50 | /** |
||
51 | * @return ASTParser |
||
52 | */ |
||
53 | protected function build_parser() { |
||
56 | |||
57 | /** |
||
58 | * @param V\Variable[] $predefined_variables |
||
59 | * @param R\Schema[] $schemas |
||
60 | * @param V\Property[] $properties |
||
61 | * @return Compiler |
||
62 | */ |
||
63 | protected function build_compiler( array $predefined_variables |
||
68 | |||
69 | /** |
||
70 | * @param string |
||
71 | * @return Ruleset |
||
72 | */ |
||
73 | public function parse($source) { |
||
78 | } |
||
79 |