Passed
Push — master ( e756b0...18a30f )
by Jean-Christophe
02:08
created

Dimmer   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A setOn() 0 2 1
A setOpacity() 0 2 1
A setClosable() 0 2 1
1
<?php
2
namespace Ajax\semantic\components;
3
4
use Ajax\JsUtils;
5
6
class Dimmer extends SimpleSemExtComponent {
7
8
	public function __construct(JsUtils $js) {
9
		parent::__construct($js);
10
		$this->uiName = "dimmer";
11
	}
12
13
	public function setOn($value = false) {
14
		$this->params["on"] = $value;
15
	}
16
17
	public function setOpacity($value) {
18
		$this->params["opacity"] = $value;
19
	}
20
21
	public function setClosable($value) {
22
		$this->params["closable"] = $value;
23
	}
24
}
25