:octocat: move mask pattern parameter

This commit is contained in:
smiley
2023-04-04 20:21:04 +02:00
parent 9bc23a2161
commit 50179a97ef
6 changed files with 38 additions and 28 deletions
+3 -2
View File
@@ -88,10 +88,11 @@ final class DecoderResult{
* Returns a QRMatrix instance with thesettings and data of the reader result
*/
public function getQRMatrix():QRMatrix{
return (new QRMatrix($this->version, $this->eccLevel, $this->maskPattern))
return (new QRMatrix($this->version, $this->eccLevel))
->initFunctionalPatterns()
->writeCodewords($this->rawBytes)
->mask()
->setFormatInfo($this->maskPattern)
->mask($this->maskPattern)
;
}