1 | <?php declare(strict_types=1); |
||
24 | class Executor |
||
25 | { |
||
26 | /** |
||
27 | * @var Context |
||
28 | */ |
||
29 | private $context; |
||
30 | /** |
||
31 | * @var ExecutorInterface |
||
32 | */ |
||
33 | private $string; |
||
34 | /** |
||
35 | * @var ExecutorInterface |
||
36 | */ |
||
37 | private $file; |
||
38 | |||
39 | /** |
||
40 | * @param Context $context |
||
41 | * @param ExecutorInterface $string |
||
42 | * @param ExecutorInterface $file |
||
43 | * |
||
44 | */ |
||
45 | public function __construct(Context $context, ExecutorInterface $string, ExecutorInterface $file) |
||
51 | |||
52 | /** |
||
53 | * @param string $string |
||
54 | * |
||
55 | * @return Value |
||
56 | */ |
||
57 | public function executeString(string $string): Value |
||
61 | |||
62 | /** |
||
63 | * @param string $path |
||
64 | * |
||
65 | * @return Value |
||
66 | */ |
||
67 | public function execute(string $path): Value |
||
71 | } |
||
72 |