1 | <?php |
||
7 | class Executor |
||
8 | { |
||
9 | /** |
||
10 | * List of the traits to use in the executor's code. |
||
11 | * |
||
12 | * @var array |
||
13 | */ |
||
14 | private $traits; |
||
15 | |||
16 | /** |
||
17 | * Compiled code of the rule. |
||
18 | * |
||
19 | * @var string |
||
20 | */ |
||
21 | private $compiledRule; |
||
22 | |||
23 | /** |
||
24 | * Data generated by the compiler and stored to be used by the executors. |
||
25 | * |
||
26 | * @var array |
||
27 | */ |
||
28 | private $compiledData; |
||
29 | |||
30 | public function __construct(array $traits, string $compiledRule, array $compilationData = []) |
||
36 | |||
37 | public function getTraits(): array |
||
41 | |||
42 | public function getCompiledRule(): string |
||
46 | |||
47 | public function getCompiledData(): array |
||
51 | } |
||
52 |