1 | <?php |
||
18 | trait ByteOrderAwareTrait |
||
19 | { |
||
20 | /** |
||
21 | * @var int |
||
22 | */ |
||
23 | protected $byteOrder; |
||
24 | |||
25 | /** |
||
26 | * @var int |
||
27 | */ |
||
28 | protected static $machineByteOrder; |
||
29 | |||
30 | /** |
||
31 | * Get byte order |
||
32 | * |
||
33 | * @return int |
||
34 | */ |
||
35 | public function getByteOrder() |
||
43 | |||
44 | /** |
||
45 | * Set byteOrder |
||
46 | * |
||
47 | * @param int $byteOrder |
||
48 | * |
||
49 | * @throws Exception\InvalidArgumentException An exception will be thrown for invalid byte order arguments |
||
50 | * |
||
51 | * @return $this |
||
52 | */ |
||
53 | public function setByteOrder($byteOrder) |
||
62 | |||
63 | /** |
||
64 | * Get machine byte order |
||
65 | * |
||
66 | * @return int |
||
67 | */ |
||
68 | public function getMachineByteOrder() |
||
81 | } |
||
82 |