Completed
Push — master ( 8aa0e6...89168a )
by Thomas
05:06
created

SerializerUI   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 4

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getLabel() 0 3 1
A showSkeleton() 0 8 1
1
<?php
2
namespace keeko\tools\ui;
3
4
use keeko\tools\ui\ModelSkeletonUI;
5
use Symfony\Component\Console\Question\Question;
6
7
class SerializerUI extends ModelSkeletonUI {
8
	
9
	protected function getLabel() {
10
		return 'serializer';
11
	}
12
13
	protected function showSkeleton() {
14
		$input = $this->io->getInput();
15
		$name = $input->getArgument('name');
16
		
17
		// ask for classname
18
		$name = $this->askQuestion(new Question('Classname', $name));
19
		$input->setArgument('name', $name);
20
	}
21
}