mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-27 18:48:13 +00:00
:octocat: +QRMatrix::init()
This commit is contained in:
@@ -101,13 +101,7 @@ abstract class QRDataAbstract implements QRDataInterface{
|
||||
*/
|
||||
public function initMatrix(int $maskPattern, bool $test = null):QRMatrix{
|
||||
return (new QRMatrix($this->version, $this->options->eccLevel))
|
||||
->setFinderPattern()
|
||||
->setSeparators()
|
||||
->setAlignmentPattern()
|
||||
->setTimingPattern()
|
||||
->setVersionNumber($test)
|
||||
->setFormatInfo($maskPattern, $test)
|
||||
->setDarkModule()
|
||||
->init($maskPattern, $test)
|
||||
->mapData($this->matrixdata, $maskPattern)
|
||||
;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user