Total Complexity | 4 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | abstract class ColorChannel |
||
13 | { |
||
14 | abstract public function get8Bit() : int; |
||
15 | |||
16 | abstract public function get7Bit() : int; |
||
17 | |||
18 | abstract public function getFloat() : float; |
||
19 | |||
20 | abstract public function getPercent() : float; |
||
21 | |||
22 | /** |
||
23 | * @return ColorChannel |
||
24 | */ |
||
25 | abstract public function invert(); |
||
26 | |||
27 | public static function EightBit(int $value) : EightBitChannel |
||
28 | { |
||
29 | return new EightBitChannel($value); |
||
30 | } |
||
31 | |||
32 | public static function SevenBit(int $value) : SevenBitChannel |
||
33 | { |
||
34 | return new SevenBitChannel($value); |
||
35 | } |
||
36 | |||
37 | public static function Percent(float $percent) : PercentChannel |
||
40 | } |
||
41 | |||
42 | public static function CSSOpacity(float $opacity) : CSSOpacityChannel |
||
45 | } |
||
46 | } |
||
47 |