mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-09-09 09:16:39 +00:00
:octocat:
This commit is contained in:
@@ -38,6 +38,8 @@ class QRMatrix{
|
||||
/** @var int */
|
||||
public const M_SEPARATOR = 0b000000001000;
|
||||
/** @var int */
|
||||
public const M_SEPARATOR_DARK = 0b100000001000;
|
||||
/** @var int */
|
||||
public const M_ALIGNMENT = 0b000000010000;
|
||||
/** @var int */
|
||||
public const M_ALIGNMENT_DARK = 0b100000010000;
|
||||
@@ -305,7 +307,7 @@ class QRMatrix{
|
||||
}
|
||||
|
||||
/**
|
||||
* checks whether the module at ($x, $y) is in the given array of $M_TYPES,
|
||||
* Checks whether the module at ($x, $y) is in the given array of $M_TYPES,
|
||||
* returns true if a match is found, otherwise false.
|
||||
*/
|
||||
public function checkTypeIn(int $x, int $y, array $M_TYPES):bool{
|
||||
|
||||
@@ -41,7 +41,7 @@ interface QROutputInterface{
|
||||
public const CUSTOM = 'custom';
|
||||
|
||||
/**
|
||||
* Map of built-in output modes => modules
|
||||
* Map of built-in output modes => class FQN
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
@@ -59,6 +59,8 @@ interface QROutputInterface{
|
||||
];
|
||||
|
||||
/**
|
||||
* Map of module type => default value
|
||||
*
|
||||
* @var bool[]
|
||||
*/
|
||||
public const DEFAULT_MODULE_VALUES = [
|
||||
@@ -78,6 +80,7 @@ interface QROutputInterface{
|
||||
QRMatrix::M_DARKMODULE => true,
|
||||
QRMatrix::M_DATA_DARK => true,
|
||||
QRMatrix::M_FINDER_DARK => true,
|
||||
QRMatrix::M_SEPARATOR_DARK => true,
|
||||
QRMatrix::M_ALIGNMENT_DARK => true,
|
||||
QRMatrix::M_TIMING_DARK => true,
|
||||
QRMatrix::M_FORMAT_DARK => true,
|
||||
@@ -89,6 +92,8 @@ interface QROutputInterface{
|
||||
];
|
||||
|
||||
/**
|
||||
* Map of module type => readable name (for CSS etc.)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
public const LAYERNAMES = [
|
||||
@@ -108,6 +113,7 @@ interface QROutputInterface{
|
||||
QRMatrix::M_DARKMODULE => 'darkmodule',
|
||||
QRMatrix::M_DATA_DARK => 'data-dark',
|
||||
QRMatrix::M_FINDER_DARK => 'finder-dark',
|
||||
QRMatrix::M_SEPARATOR_DARK => 'separator-dark',
|
||||
QRMatrix::M_ALIGNMENT_DARK => 'alignment-dark',
|
||||
QRMatrix::M_TIMING_DARK => 'timing-dark',
|
||||
QRMatrix::M_FORMAT_DARK => 'format-dark',
|
||||
|
||||
Reference in New Issue
Block a user