Completed
Push — master ( e9bdcb...b0560a )
by Jean-Christophe
04:52
created

Progress   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A setOnChange() 0 3 1
A setText() 0 3 1
1
<?php
2
3
namespace Ajax\semantic\components;
4
5
use Ajax\common\components\SimpleExtComponent;
6
use Ajax\JsUtils;
7
8
class Progress extends SimpleExtComponent {
9
10
	public function __construct(JsUtils $js) {
11
		parent::__construct($js);
12
		$this->uiName="progress";
13
	}
14
15
	public function setOnChange($jsCode) {
16
		return $this->params["onChange"]=$jsCode;
17
	}
18
19
	public function setText($values) {
20
		return $this->params["text"]=$values;
21
	}
22
	
23
	// TODO other events implementation
24
}