:octocat: +max length table reference

This commit is contained in:
codemasher
2021-01-06 19:13:34 +01:00
parent cb9f4bfcba
commit 0c318f7ef6
+14
View File
@@ -65,6 +65,20 @@ final class Mode{
self::DATA_BYTE => Byte::class,
];
/**
* References to the keys of the following table(s):
*
* @see \chillerlan\QRCode\Common\Version::MAX_LENGTH
*
* @var int[]
*/
public const DATA_MODES = [
self::DATA_NUMBER => 0,
self::DATA_ALPHANUM => 1,
self::DATA_BYTE => 2,
self::DATA_KANJI => 3,
];
/**
* returns the length bits for the version breakpoints 1-9, 10-26 and 27-40
*