mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-27 18:48:13 +00:00
:octocat: simplified mask pattern tester call
This commit is contained in:
@@ -37,14 +37,10 @@ class MaskPatternTester{
|
||||
* @see \chillerlan\QRCode\QRCode::getBestMaskPattern()
|
||||
*
|
||||
* @param \chillerlan\QRCode\Data\QRMatrix $matrix
|
||||
*
|
||||
* @return \chillerlan\QRCode\Data\MaskPatternTester
|
||||
*/
|
||||
public function setMatrix(QRMatrix $matrix):MaskPatternTester{
|
||||
public function __construct(QRMatrix $matrix){
|
||||
$this->matrix = $matrix;
|
||||
$this->moduleCount = $this->matrix->size();
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user