mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-30 12:07:32 +00:00
:octocat: +final
This commit is contained in:
@@ -19,7 +19,7 @@ use function array_search, ord, sprintf;
|
||||
/**
|
||||
* Alphanumeric mode: 0 to 9, A to Z, space, $ % * + - . / :
|
||||
*/
|
||||
class AlphaNum extends QRDataAbstract{
|
||||
final class AlphaNum extends QRDataAbstract{
|
||||
|
||||
protected int $datamode = QRCode::DATA_ALPHANUM;
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ use function ord;
|
||||
/**
|
||||
* Byte mode, ISO-8859-1 or UTF-8
|
||||
*/
|
||||
class Byte extends QRDataAbstract{
|
||||
final class Byte extends QRDataAbstract{
|
||||
|
||||
protected int $datamode = QRCode::DATA_BYTE;
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ use function mb_strlen, ord, sprintf, strlen;
|
||||
/**
|
||||
* Kanji mode: double-byte characters from the Shift JIS character set
|
||||
*/
|
||||
class Kanji extends QRDataAbstract{
|
||||
final class Kanji extends QRDataAbstract{
|
||||
|
||||
protected int $datamode = QRCode::DATA_KANJI;
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ use function abs, call_user_func;
|
||||
*
|
||||
* @link http://www.thonky.com/qr-code-tutorial/data-masking
|
||||
*/
|
||||
class MaskPatternTester{
|
||||
final class MaskPatternTester{
|
||||
|
||||
protected QRMatrix $matrix;
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ use function ord, sprintf, substr;
|
||||
/**
|
||||
* Numeric mode: decimal digits 0 through 9
|
||||
*/
|
||||
class Number extends QRDataAbstract{
|
||||
final class Number extends QRDataAbstract{
|
||||
|
||||
protected int $datamode = QRCode::DATA_NUMBER;
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ use function array_fill, array_key_exists, array_push, array_unshift, count, flo
|
||||
/**
|
||||
* @link http://www.thonky.com/qr-code-tutorial/format-version-information
|
||||
*/
|
||||
class QRMatrix{
|
||||
final class QRMatrix{
|
||||
|
||||
public const M_NULL = 0x00;
|
||||
public const M_DARKMODULE = 0x02;
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace chillerlan\QRCode\Helpers;
|
||||
|
||||
use function count, floor;
|
||||
|
||||
class BitBuffer{
|
||||
final class BitBuffer{
|
||||
|
||||
/** @var int[] */
|
||||
public array $buffer = [];
|
||||
|
||||
@@ -19,7 +19,7 @@ use function array_fill, count, sprintf;
|
||||
/**
|
||||
* @link http://www.thonky.com/qr-code-tutorial/error-correction-coding
|
||||
*/
|
||||
class Polynomial{
|
||||
final class Polynomial{
|
||||
|
||||
/**
|
||||
* @link http://www.thonky.com/qr-code-tutorial/log-antilog-table
|
||||
|
||||
Reference in New Issue
Block a user