Completed
Push — master ( 118f52...c5048d )
by Thomas
10:09
created

GenerateEmberCommand   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 3
c 1
b 1
f 0
lcom 0
cbo 4
dl 0
loc 26
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A configure() 0 7 1
A interact() 0 4 1
A execute() 0 9 1
1
<?php
2
namespace keeko\tools\command;
3
4
use keeko\tools\ui\EmberUI;
5
use Symfony\Component\Console\Input\InputInterface;
6
use Symfony\Component\Console\Output\OutputInterface;
7
8
class GenerateEmberCommand extends AbstractEmberCommand {
9
10
	protected function configure() {
11
		$this
12
			->setName('generate:ember')
13
			->setDescription('Run all ember generators');
14
15
		parent::configure();
16
	}
17
18
	protected function interact(InputInterface $input, OutputInterface $output) {
19
		$ui = new EmberUI($this);
20
		$ui->show();
21
	}
22
23
	protected function execute(InputInterface $input, OutputInterface $output) {
24
		$args = [
25
			'--package' => $input->getOption('package')
26
		];
27
28
		$this->runCommand('generate:ember:model', $args);
29
		$this->runCommand('generate:ember:abilities', $args);
30
		$this->runCommand('generate:ember:serializer', $args);
31
	}
32
33
}