Conditions | 2 |
Paths | 2 |
Total Lines | 5 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
38 | public function __invoke(string $expression, $keyPath, $validator = null) { |
||
39 | if(!RecursiveStructureAccess::recursiveHas($this->map, $keyPath)) { |
||
40 | throw new RequiredValueNotFoundException(sprintf("Required value %s not found", json_encode($keyPath, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE))); |
||
41 | } |
||
42 | return new DBExprFilter($expression, $this->map, $keyPath, $validator); |
||
43 | } |
||
45 |