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

SerializerUI::getLabel()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
nop 0
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
}