Completed
Push — master ( 189ad5...73e21a )
by Jean-Christophe
04:04
created

HtmlContainer   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A asText() 0 3 1
1
<?php
2
3
namespace Ajax\semantic\html\elements;
4
5
use Ajax\semantic\html\base\HtmlSemDoubleElement;
6
use Ajax\semantic\html\base\traits\TextAlignmentTrait;
7
/**
8
 * Semantic UI container component
9
 * @see http://semantic-ui.com/elements/container.html#/definition
10
 * @author jc
11
 * @version 1.001
12
 */
13
class HtmlContainer extends HtmlSemDoubleElement {
14
	use TextAlignmentTrait;
15
	public function __construct($identifier, $content="") {
16
		parent::__construct($identifier, "div","ui container");
17
		$this->content=$content;
18
	}
19
20
	public function asText(){
21
		return $this->addToProperty("class", "text");
22
	}
23
}