1 | <?php |
||
9 | abstract class AbstractType implements TypeInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var int |
||
13 | */ |
||
14 | private $byteOrder; |
||
15 | |||
16 | /** |
||
17 | * @param int $byteOrder |
||
18 | */ |
||
19 | 198 | public function __construct(int $byteOrder = ByteOrder::BE) |
|
27 | |||
28 | /** |
||
29 | * @return int |
||
30 | */ |
||
31 | 150 | public function getByteOrder(): int |
|
35 | |||
36 | /** |
||
37 | * @return bool |
||
38 | */ |
||
39 | 128 | public function isBigEndian(): bool |
|
43 | |||
44 | /** |
||
45 | * @param string $bitString |
||
46 | * @return string |
||
47 | * @throws \Exception |
||
48 | */ |
||
49 | 64 | public function flipBits(string $bitString): string |
|
64 | } |
||
65 |