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

HtmlCardGroups::getCardContent()   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 2
1
<?php
2
3
namespace Ajax\semantic\html\views;
4
5
6
use Ajax\semantic\html\content\view\HtmlViewGroups;
7
8
class HtmlCardGroups extends HtmlViewGroups {
9
10
	public function __construct($identifier, $cards=array()) {
11
		parent::__construct($identifier, "ui cards",$cards);
12
	}
13
14
	protected function createElement(){
15
		return new HtmlCard("card-" . $this->count());
16
	}
17
18
	public function newItem($identifier) {
19
		return new HtmlCard($identifier);
20
	}
21
22
	public function getCard($index) {
23
		return $this->getItem($index);
24
	}
25
26
	public function getCardContent($cardIndex, $contentIndex) {
27
		return $this->getItemContent($cardIndex, $contentIndex);
28
	}
29
30
}