| 1 | <?php |
||
| 9 | abstract class AbstractType implements TypeInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var |
||
| 13 | */ |
||
| 14 | private $byteOrder; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param int $byteOrder |
||
| 18 | */ |
||
| 19 | 192 | public function __construct(int $byteOrder = ByteOrder::BE) |
|
| 27 | |||
| 28 | /** |
||
| 29 | * @return int |
||
| 30 | */ |
||
| 31 | 144 | public function getByteOrder(): int |
|
| 35 | |||
| 36 | /** |
||
| 37 | * @return bool |
||
| 38 | */ |
||
| 39 | 132 | 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 |