1 | <?php |
||
28 | class Simple implements Runner |
||
29 | { |
||
30 | /** |
||
31 | * Class handling system calls. |
||
32 | * |
||
33 | * @var \SebastianFeldmann\Cli\Processor |
||
34 | */ |
||
35 | private $processor; |
||
36 | |||
37 | /** |
||
38 | * Exec constructor. |
||
39 | * |
||
40 | 2 | * @param \SebastianFeldmann\Cli\Processor $processor |
|
41 | */ |
||
42 | 2 | public function __construct(Processor $processor = null) |
|
46 | |||
47 | /** |
||
48 | * Execute a cli command. |
||
49 | * |
||
50 | * @param \SebastianFeldmann\Cli\Command $command |
||
51 | * @param \SebastianFeldmann\Cli\Command\OutputFormatter $formatter |
||
52 | 2 | * @return \SebastianFeldmann\Cli\Command\Runner\Result |
|
53 | */ |
||
54 | 2 | public function run(Command $command, OutputFormatter $formatter = null): Result |
|
72 | } |
||
73 |