protected function getBestMaskPattern():int{
		$penalties = [];

		for($pattern = 0; $pattern < 8; $pattern++){
			$tester = new MaskPatternTester($this->dataInterface->initMatrix($pattern, true));

			$penalties[$pattern] = $tester->testPattern();
		}

		return \array_search(\min($penalties), $penalties, true);
	}
protected function getBestMaskPattern():int{
		$penalties = [];

		for($pattern = 0; $pattern < 8; $pattern++){
			$tester = new MaskPatternTester($this->dataInterface->initMatrix($pattern, true));

			$penalties[$pattern] = $tester->testPattern();
		}

		return \array_search(\min($penalties), $penalties, true);
	}
protected function getBestMaskPattern ( ) : int { $ penalties = [ ] ; for ( $ pattern = 0 ; $ pattern < 8 ; $ pattern ++ ) { $ tester = new MaskPatternTester ( $ this -> dataInterface -> initMatrix ( $ pattern , true ) ) ; $ penalties [ $ pattern ] = $ tester -> testPattern ( ) ; } return \ array_search ( \ min ( $ penalties ) , $ penalties , true ) ; }
shoves a QRMatrix through the MaskPatternTester to find the lowest penalty mask pattern

@see \chillerlan\QRCode\Data\MaskPatternTester

@return int
shoves a QRMatrix through the MaskPatternTester to find the lowest penalty mask pattern