Completed
Push — master ( f1c264...f58245 )
by Thomas
04:22
created

SkeletonDomainGenerator   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A generate() 0 8 1
1
<?php
2
namespace keeko\tools\generator\domain;
3
4
class SkeletonDomainGenerator extends AbstractDomainGenerator {
5
6
	/**
7
	 * Add default blank methods
8
	 * 
9
	 * @param string $classname
0 ignored issues
show
Documentation introduced by
There is no parameter named $classname. Did you maybe mean $className?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.

Consider the following example. The parameter $ireland is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $ireland
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was changed, but the annotation was not.

Loading history...
10
	 */
11
	public function generate($className) {
12
		$class = $this->generateClass($className);
13
		$class = $this->loadClass($class);
14
		
15
		$this->ensureBasicSetup($class);
16
17
		return $class;
18
	}
19
}