| 1 | <?php |
||
| 10 | abstract class AbstractColorManager |
||
| 11 | { |
||
| 12 | const ANSI_ESCAPE_CODE_BEGIN = "\033["; |
||
| 13 | const ANSI_ESCAPE_CODE_END = 'm'; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Get color |
||
| 17 | * |
||
| 18 | * @param int $colorID |
||
| 19 | * |
||
| 20 | * @return EscapeAttribute color |
||
| 21 | */ |
||
| 22 | public static function color($colorID) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Get allowed colors |
||
| 37 | * |
||
| 38 | * @return string[] |
||
| 39 | */ |
||
| 40 | public static function getKnownColors() |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Get Color class |
||
| 48 | * |
||
| 49 | * @return string |
||
| 50 | */ |
||
| 51 | public static function getColorClass() |
||
| 56 | } |
||
| 57 |