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

HtmlItems::createElement()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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