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

AbstractHtmlResponderGenerator   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getTemplateFolder() 0 3 1
A generate() 0 3 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
}