mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-25 09:07:56 +00:00
:octocat: return BitBuffer instance to DecoderResult
This commit is contained in:
@@ -30,7 +30,7 @@ use function property_exists;
|
||||
*/
|
||||
final class DecoderResult{
|
||||
|
||||
private array $rawBytes;
|
||||
private BitBuffer $rawBytes;
|
||||
private string $data;
|
||||
private Version $version;
|
||||
private EccLevel $eccLevel;
|
||||
@@ -90,7 +90,7 @@ final class DecoderResult{
|
||||
public function getMatrix():QRMatrix{
|
||||
return (new QRMatrix($this->version, $this->eccLevel, $this->maskPattern))
|
||||
->initFunctionalPatterns()
|
||||
->writeCodewords(new BitBuffer($this->rawBytes))
|
||||
->writeCodewords($this->rawBytes)
|
||||
->mask()
|
||||
;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user