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

HtmlContainer::asText()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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