| Total Complexity | 3 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | class RestoreCommand extends Command |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @var Hooks |
||
| 26 | */ |
||
| 27 | private $hooks; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var Patcher |
||
| 31 | */ |
||
| 32 | private $patcher; |
||
| 33 | /** |
||
| 34 | * @var Template |
||
| 35 | */ |
||
| 36 | private $template; |
||
| 37 | |||
| 38 | public function __construct( |
||
| 39 | ?string $name = null, |
||
| 40 | Template $template, |
||
| 41 | Patcher $patcher, |
||
| 42 | Hooks $hooks |
||
| 43 | ) { |
||
| 44 | parent::__construct($name); |
||
| 45 | $this->template = $template; |
||
| 46 | $this->patcher = $patcher; |
||
| 47 | $this->hooks = $hooks; |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * {@inheritdoc} |
||
| 52 | */ |
||
| 53 | protected function configure(): void |
||
| 54 | { |
||
| 55 | $this |
||
| 56 | ->setName('restore') |
||
| 57 | ->setDescription('Restore dotfiles from backup') |
||
| 58 | ; |
||
| 59 | } |
||
| 60 | |||
| 61 | protected function execute(InputInterface $input, OutputInterface $output): void |
||
| 66 | } |
||
| 67 | } |
||
| 68 |