Completed
Push — master ( 2fb143...d99a08 )
by Thomas
09:36
created

AbstractHtmlResponderGenerator::generate()   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 1
1
<?php
2
namespace keeko\tools\generator\responder;
3
4
use keeko\framework\schema\ActionSchema;
5
6
class AbstractHtmlResponderGenerator extends AbstractResponderGenerator {
7
	
8
	protected function getTemplateFolder() {
9
		return 'responder/html';
10
	}
11
	
12
	/**
13
	 * Generates a html response class for the given action
14
	 *
15
	 * @param ActionSchema $action
16
	 * @return PhpClass
17
	 */
18
	public function generate(ActionSchema $action) {
19
		return $this->doGenerate($action, 'html');
20
	}
21
}