1 | <?php |
||
18 | abstract class _Combined extends Predicate { |
||
19 | /** |
||
20 | * @var Predicate[] |
||
21 | */ |
||
22 | protected $predicates; |
||
23 | |||
24 | 52 | public function __construct(array $predicates) { |
|
29 | |||
30 | /** |
||
31 | * @return \Closure[] |
||
32 | */ |
||
33 | protected function compiled_predicates() { |
||
34 | return array_map(function($p) { |
||
35 | return $p->compile(); |
||
36 | }, $this->predicates); |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * @param string[] |
||
41 | * @return string[][] |
||
42 | */ |
||
43 | protected function for_types_of_predicates(array $existing_types) { |
||
48 | } |
||
49 |