mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-30 03:58:28 +00:00
🚿 re-add ECC mode constants for backwards compatibility
This commit is contained in:
+16
-1
@@ -10,7 +10,7 @@
|
||||
|
||||
namespace chillerlan\QRCode;
|
||||
|
||||
use chillerlan\QRCode\Common\{ECICharset, MaskPattern, MaskPatternTester, Mode};
|
||||
use chillerlan\QRCode\Common\{EccLevel, ECICharset, MaskPattern, MaskPatternTester, Mode};
|
||||
use chillerlan\QRCode\Data\{AlphaNum, Byte, ECI, Kanji, Number, QRData, QRCodeDataException, QRDataModeInterface, QRMatrix};
|
||||
use chillerlan\QRCode\Decoder\{Decoder, DecoderResult, GDLuminanceSource, IMagickLuminanceSource, LuminanceSourceInterface};
|
||||
use chillerlan\QRCode\Output\{QRCodeOutputException, QRFpdf, QRImage, QRImagick, QRMarkup, QROutputInterface, QRString};
|
||||
@@ -33,6 +33,21 @@ class QRCode{
|
||||
/** @var int */
|
||||
public const MASK_PATTERN_AUTO = -1;
|
||||
|
||||
/**
|
||||
* @deprecated backward compatibility
|
||||
* @see \chillerlan\QRCode\Common\EccLevel
|
||||
*/
|
||||
/** @var int */
|
||||
public const ECC_L = EccLevel::L;
|
||||
/** @var int */
|
||||
public const ECC_M = EccLevel::M;
|
||||
/** @var int */
|
||||
public const ECC_Q = EccLevel::Q;
|
||||
/** @var int */
|
||||
public const ECC_H = EccLevel::H;
|
||||
/** @var int[] */
|
||||
public const ECC_MODES = EccLevel::MODES;
|
||||
|
||||
/** @var string */
|
||||
public const OUTPUT_MARKUP_HTML = 'html';
|
||||
/** @var string */
|
||||
|
||||
Reference in New Issue
Block a user