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

Color   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setRed() 0 3 1
A setGreen() 0 3 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
}