Completed
Push — master ( 159932...f1c264 )
by Thomas
08:09
created

AbstractModelActionGenerator::ensureUseStatements()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
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 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
namespace keeko\tools\generator\action;
3
4
use gossi\codegen\model\PhpClass;
5
use keeko\framework\schema\ActionSchema;
6
7
class AbstractModelActionGenerator extends AbstractActionGenerator {
8
	
9
	/**
10
	 * Generates an action trait with the given name as classname
11
	 * 
12
	 * @param ActionSchema $action
13
	 * @return PhpClass
14
	 */
15
	public function generate(ActionSchema $action) {
16
		$class = $this->generateClass($action);
17
		$this->addMethods($class, $action);
18
19
		return $class;
20
	}
21
22
	protected function addMethods(PhpClass $struct, ActionSchema $action) {
23
	}
24
}