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

Dimmer::setOn()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 2
rs 10
c 0
b 0
f 0
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