InstallCommand   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 2
dl 0
loc 13
ccs 0
cts 8
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A configure() 0 4 1
A execute() 0 4 1
1
<?php
2
3
namespace Queryr\Replicator\Cli\Command;
4
5
use Queryr\Replicator\Cli\Install\InstallCommandExecutor;
6
use Symfony\Component\Console\Command\Command;
7
use Symfony\Component\Console\Input\InputInterface;
8
use Symfony\Component\Console\Output\OutputInterface;
9
10
/**
11
 * @licence GNU GPL v2+
12
 * @author Jeroen De Dauw < [email protected] >
13
 */
14
class InstallCommand extends Command {
15
16
	protected function configure() {
17
		$this->setName( 'install' );
18
		$this->setDescription( 'Installs QueryR Replicator using the database details listed in config/db.json' );
19
	}
20
21
	protected function execute( InputInterface $input, OutputInterface $output ) {
22
		$executor = new InstallCommandExecutor( $input, $output );
23
		$executor->run();
24
	}
25
26
}