1 | <?php |
||
15 | class Type |
||
16 | { |
||
17 | /** |
||
18 | * Bilevel type. |
||
19 | */ |
||
20 | const TYPE_BILEVEL = 1; |
||
21 | |||
22 | /** |
||
23 | * Grayscale type. |
||
24 | */ |
||
25 | const TYPE_GRAYSCALE = 2; |
||
26 | |||
27 | /** |
||
28 | * Palette type. |
||
29 | */ |
||
30 | const TYPE_PALETTE = 3; |
||
31 | |||
32 | /** |
||
33 | * Truecolor type. |
||
34 | */ |
||
35 | const TYPE_TRUECOLOR = 4; |
||
36 | |||
37 | /** |
||
38 | * Colorseparation type. |
||
39 | */ |
||
40 | const TYPE_COLORSEPARATION = 5; |
||
41 | |||
42 | /** |
||
43 | * Valid values |
||
44 | * |
||
45 | * @var int[] |
||
46 | */ |
||
47 | protected static $values = [ |
||
48 | self::TYPE_BILEVEL, |
||
49 | self::TYPE_GRAYSCALE, |
||
50 | self::TYPE_PALETTE, |
||
51 | self::TYPE_TRUECOLOR, |
||
52 | self::TYPE_COLORSEPARATION, |
||
53 | ]; |
||
54 | |||
55 | /** |
||
56 | * Return valid values |
||
57 | * |
||
58 | * @return int[] |
||
59 | */ |
||
60 | public static function values() |
||
64 | } |
||
65 |