/** * @param MathAdapterInterface $math * @param int $byteOrder */ public function __construct(MathAdapterInterface $math, $byteOrder = ByteOrder::BE) { parent::__construct($math, $byteOrder); }
/** * @param VarInt $varInt */ public function __construct(VarInt $varInt) { $this->varint = $varInt; parent::__construct($varInt->getMath(), $varInt->getByteOrder()); }
/** * @param MathAdapterInterface $math * @param int|string $length * @param int|string $byteOrder */ public function __construct(MathAdapterInterface $math, $length, $byteOrder = ByteOrder::BE) { $this->length = $length; parent::__construct($math, $byteOrder); }