Total Complexity | 7 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
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() { |
||
36 | } |
||
37 | |||
38 | public function setClose() { |
||
39 | return $this->updateType('close'); |
||
40 | } |
||
41 | } |
||
42 |