| 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 | public function __construct(Context $context, ExecutorInterface $string, ExecutorInterface $file) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param string $string |
||
| 49 | * |
||
| 50 | * @return Value |
||
| 51 | */ |
||
| 52 | public function executeString(string $string): Value |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @param string $path |
||
| 59 | * |
||
| 60 | * @return Value |
||
| 61 | */ |
||
| 62 | public function execute(string $path): Value |
||
| 66 | } |
||
| 67 |