Пример #1
0
 /**
  * @param MathAdapterInterface $math
  * @param int                  $byteOrder
  */
 public function __construct(MathAdapterInterface $math, $byteOrder = ByteOrder::BE)
 {
     parent::__construct($math, $byteOrder);
 }
Пример #2
0
 /**
  * @param VarInt $varInt
  */
 public function __construct(VarInt $varInt)
 {
     $this->varint = $varInt;
     parent::__construct($varInt->getMath(), $varInt->getByteOrder());
 }
Пример #3
0
 /**
  * @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);
 }