| 1 | <?php |
||
| 18 | class Simple implements Runner |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * Class handling system calls. |
||
| 22 | * |
||
| 23 | * @var \SebastianFeldmann\Cli\Processor |
||
| 24 | */ |
||
| 25 | private $processor; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Exec constructor. |
||
| 29 | * |
||
| 30 | * @param \SebastianFeldmann\Cli\Processor $processor |
||
| 31 | */ |
||
| 32 | public function __construct(Processor $processor = null) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Execute a cli command. |
||
| 39 | * |
||
| 40 | * @param \SebastianFeldmann\Cli\Command $command |
||
| 41 | * @param \SebastianFeldmann\Cli\Command\OutputFormatter $formatter |
||
| 42 | * @return \SebastianFeldmann\Cli\Command\Runner\Result |
||
| 43 | */ |
||
| 44 | public function run(Command $command, OutputFormatter $formatter = null) : Result |
||
| 57 | } |
||
| 58 |