Completed
Push — master ( fcfed5...b7a7dd )
by Jean-Christophe
03:28
created

HtmlItems   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 2
dl 0
loc 14
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A createElement() 0 3 1
A newItem() 0 3 1
1
<?php
2
3
namespace Ajax\semantic\html\views;
4
5
6
use Ajax\semantic\html\content\view\HtmlViewGroups;
7
use Ajax\semantic\html\content\view\HtmlItem;
8
9
class HtmlItems extends HtmlViewGroups {
10
11
	public function __construct($identifier, $items=array()) {
12
		parent::__construct($identifier, "ui items",$items);
13
	}
14
15
	protected function createElement(){
16
		return new HtmlItem("item-" . $this->count());
17
	}
18
19
	public function newItem($identifier) {
20
		return new HtmlItem($identifier);
21
	}
22
}