Total Complexity | 3 |
Total Lines | 45 |
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 | /** |
||
35 | * @var Template |
||
36 | */ |
||
37 | private $template; |
||
38 | |||
39 | public function __construct( |
||
40 | ?string $name = null, |
||
41 | Template $template, |
||
42 | Patcher $patcher, |
||
43 | Hooks $hooks |
||
44 | ) { |
||
45 | parent::__construct($name); |
||
46 | $this->template = $template; |
||
47 | $this->patcher = $patcher; |
||
48 | $this->hooks = $hooks; |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | protected function configure(): void |
||
55 | { |
||
56 | $this |
||
57 | ->setName('restore') |
||
58 | ->setDescription('Restore dotfiles from backup') |
||
59 | ; |
||
60 | } |
||
61 | |||
62 | protected function execute(InputInterface $input, OutputInterface $output): void |
||
67 | } |
||
68 | } |
||
69 |