Completed
Push — master ( cac1be...eadaa3 )
by Thomas
04:35
created

AbstractHtmlResponseGenerator   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
c 2
b 0
f 0
lcom 0
cbo 1
dl 0
loc 16
ccs 4
cts 4
cp 1
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;
3
4
use keeko\tools\generator\AbstractResponseGenerator;
5
use keeko\core\schema\ActionSchema;
6
7
class AbstractHtmlResponseGenerator extends AbstractResponseGenerator {
8
	
9 2
	protected function getTemplateFolder() {
10 2
		return 'response/html';
11
	}
12
	
13
	/**
14
	 * Generates a html response class for the given action
15
	 *
16
	 * @param ActionSchema $action
17
	 * @return PhpClass
18
	 */
19 2
	public function generate(ActionSchema $action) {
20 2
		return $this->doGenerate($action, 'html');
21
	}
22
}