Passed
Push — master ( d4bd11...75b4ea )
by Jean-Christophe
03:42
created

HtmlRail::setInternal()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
namespace Ajax\semantic\html\elements;
3
4
use Ajax\semantic\html\base\HtmlSemDoubleElement;
5
6
/**
7
 *
8
 * @author jc
9
 *
10
 */
11
class HtmlRail extends HtmlSemDoubleElement {
12
13
	public function __construct($identifier, $content = NULL) {
14
		parent::__construct($identifier, 'div', 'ui rail', $content);
15
	}
16
17
	private function updateType(string $type) {
18
		$this->addToProperty('class', $type);
19
		return $this;
20
	}
21
22
	public function setLeft() {
23
		return $this->updateType('left');
24
	}
25
26
	public function setRight() {
27
		return $this->updateType('right');
28
	}
29
30
	public function setInternal() {
31
		return $this->updateType('internal');
32
	}
33
34
	public function setDividing() {
35
		return $this->updateType('dividing');
36
	}
37
38
	public function setClose() {
39
		return $this->updateType('close');
40
	}
41
}
42