|
@@ -23,6 +23,23 @@ use function range, sprintf;
|
|
|
*/
|
|
*/
|
|
|
class QRData{
|
|
class QRData{
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * the options instance
|
|
|
|
|
+ *
|
|
|
|
|
+ * @var \chillerlan\Settings\SettingsContainerInterface|\chillerlan\QRCode\QROptions
|
|
|
|
|
+ */
|
|
|
|
|
+ protected SettingsContainerInterface $options;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * a BitBuffer instance
|
|
|
|
|
+ */
|
|
|
|
|
+ protected BitBuffer $bitBuffer;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * an EccLevel instance
|
|
|
|
|
+ */
|
|
|
|
|
+ protected EccLevel $eccLevel;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* current QR Code version
|
|
* current QR Code version
|
|
|
*/
|
|
*/
|
|
@@ -40,20 +57,6 @@ class QRData{
|
|
|
*/
|
|
*/
|
|
|
protected array $maxBitsForEcc;
|
|
protected array $maxBitsForEcc;
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
- * the options instance
|
|
|
|
|
- *
|
|
|
|
|
- * @var \chillerlan\Settings\SettingsContainerInterface|\chillerlan\QRCode\QROptions
|
|
|
|
|
- */
|
|
|
|
|
- protected SettingsContainerInterface $options;
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * a BitBuffer instance
|
|
|
|
|
- */
|
|
|
|
|
- protected BitBuffer $bitBuffer;
|
|
|
|
|
-
|
|
|
|
|
- protected EccLevel $eccLevel;
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* QRData constructor.
|
|
* QRData constructor.
|
|
|
*
|
|
*
|
|
@@ -154,7 +157,6 @@ class QRData{
|
|
|
if($total <= $this->maxBitsForEcc[$version]){
|
|
if($total <= $this->maxBitsForEcc[$version]){
|
|
|
return $version;
|
|
return $version;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// it's almost impossible to run into this one as $this::estimateTotalBitLength() would throw first
|
|
// it's almost impossible to run into this one as $this::estimateTotalBitLength() would throw first
|