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

HtmlAccordionMenuItem   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A setActive() 0 4 1
1
<?php
2
3
namespace Ajax\semantic\html\content;
4
5
6
class HtmlAccordionMenuItem extends HtmlMenuItem {
7
	public function __construct($identifier,$title,$content) {
8
		parent::__construct($identifier, new HtmlAccordionItem("accordion-".$identifier, $title,$content));
9
	}
10
11
	public function setActive($value=true){
12
		$this->content->setActive($value);
13
		return $this;
14
	}
15
}