|
|
@@ -92,18 +92,4 @@ final class Mode{
|
|
|
throw new QRCodeException(sprintf('invalid version number: %d', $version));
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * returns the array of length bits for the given mode
|
|
|
- *
|
|
|
- * @throws \chillerlan\QRCode\QRCodeException
|
|
|
- */
|
|
|
- public static function getLengthBitsForMode(int $mode):array{
|
|
|
-
|
|
|
- if(isset(self::LENGTH_BITS[$mode])){
|
|
|
- return self::LENGTH_BITS[$mode];
|
|
|
- }
|
|
|
-
|
|
|
- throw new QRCodeException('invalid mode given');
|
|
|
- }
|
|
|
-
|
|
|
}
|