| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | 36 | public function __construct(string $rule, array $variables = []) |
|
| 33 | { |
||
| 34 | 36 | $this->rule = $rule; |
|
| 35 | 36 | $this->parser = new Parser(new Tokenizer(new JavaScript()), new Expressions\Factory()); |
|
| 36 | 36 | $this->evaluator = new Evaluator(); |
|
| 37 | |||
| 38 | 36 | $this->parser->assignVariables($variables); |
|
| 39 | 36 | } |
|
| 40 | |||
| 79 |