Completed
Push — master ( 1d23a1...916f6f )
by Jean-Christophe
03:30
created

SemanticHtmlModulesTrait::htmlCheckbox()   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 4
1
<?php
2
namespace Ajax\semantic\traits;
3
4
use Ajax\semantic\html\collections\form\HtmlFormCheckbox;
5
use Ajax\semantic\html\base\constants\CheckboxType;
6
use Ajax\semantic\html\modules\HtmlRating;
7
8
9
trait SemanticHtmlModulesTrait {
10
11
	public abstract function addHtmlComponent($htmlComponent);
12
13
	/**
14
	 * Module checkbox
15
	 * @param string $identifier
16
	 * @param string $label
17
	 * @param mixed $value
18
	 * @param CheckboxType $type
19
	 */
20
	public function htmlCheckbox($identifier, $label=NULL,$value=NULL,$type=NULL){
21
		return $this->addHtmlComponent(new HtmlFormCheckbox($identifier,$label,$value,$type));
22
	}
23
24
	/**
25
	 * @param string $identifier
26
	 * @param int $rowCount
0 ignored issues
show
Bug introduced by
There is no parameter named $rowCount. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

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

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

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

Loading history...
27
	 * @param int $colCount
0 ignored issues
show
Bug introduced by
There is no parameter named $colCount. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

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

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

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

Loading history...
28
	 */
29
	public function htmlRating($identifier, $value, $max,$icon=""){
30
		return $this->addHtmlComponent(new HtmlRating($identifier, $value, $max,$icon));
31
	}
32
}