Completed
Push — master ( fdc0c0...9de830 )
by Jean-Christophe
03:31
created

Accordion::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace Ajax\semantic\components;
4
5
use Ajax\common\components\SimpleExtComponent;
6
use Ajax\JsUtils;
7
8
class Accordion extends SimpleExtComponent {
9
10
	public function __construct(JsUtils $js) {
11
		parent::__construct($js);
12
		$this->uiName="accordion";
13
	}
14
15
	/**
16
	 *
17
	 * @param string $value default : click
18
	 * @return $this
19
	 */
20
	public function setOn($value="click") {
21
		return $this->setParam("on", $value);
22
	}
23
24
	//TODO other events implementation
25
}