Completed
Push — master ( e9bdcb...b0560a )
by Jean-Christophe
04:52
created

Color::setGreen()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Ajax\semantic\html\base\constants;
4
5
use Ajax\common\BaseEnum;
6
use Ajax\semantic\html\base\HtmlSemDoubleElement;
7
8
abstract class Color extends BaseEnum {
9
	const STANDARD="", RED="red", ORANGE="orange", YELLOW="yellow", OLIVE="olive", GREEN="green", TEAL="teal", BLUE="blue", VIOLET="violet", PURPLE="purple", PINK="pink", BROWN="brown", GREY="grey", BLACK="black";
10
11
	public static function setRed(HtmlSemDoubleElement $e) {
12
		return $e->addToProperty("class", self::RED);
13
	}
14
15
	public static function setGreen(HtmlSemDoubleElement $e) {
16
		return $e->addToProperty("class", self::GREEN);
17
	}
18
}