1 | <?php |
||
15 | class Endian |
||
16 | { |
||
17 | /** |
||
18 | * Big endian |
||
19 | */ |
||
20 | const ENDIAN_BIG = 1; |
||
21 | |||
22 | /** |
||
23 | * Little endian |
||
24 | */ |
||
25 | const ENDIAN_LITTLE = 2; |
||
26 | |||
27 | /** |
||
28 | * Valid values |
||
29 | * |
||
30 | * @var int[] |
||
31 | */ |
||
32 | protected static $values = [ |
||
33 | self::ENDIAN_BIG, |
||
34 | self::ENDIAN_LITTLE |
||
35 | ]; |
||
36 | |||
37 | /** |
||
38 | * Return valid values |
||
39 | * |
||
40 | * @return int[] |
||
41 | */ |
||
42 | public static function values() |
||
46 | } |
||
47 |