Completed
Push — master ( c7b947...966759 )
by Thomas
08:09
created

EmberModelsUI   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 7

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 1
cbo 7
dl 0
loc 13
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A show() 0 10 2
1
<?php
2
namespace keeko\tools\ui;
3
4
use keeko\tools\ui\AbstractUI;
5
use Symfony\Component\Console\Question\Question;
6
7
class EmberModelsUI extends AbstractUI {
8
	
9
	public function show() {
10
		$input = $this->io->getInput();
11
		$package = $input->getOption('package');
12
		if (empty($package)) {
13
			$package = $this->getService()->getPackageService()->getPackage()->getFullName();
14
		}
15
		$package = $this->askQuestion(new Question('Models from which package', $package));
16
		
17
		$input->setOption('package', $package);
18
	}
19
}