MCPcopy Create free account
hub / github.com/codemistic/Web-Development / setVersion

Method setVersion

text-to-qr/lib/phpqrcode/phpqrcode.php:1313–1323  ·  view source on GitHub ↗

----------------------------------------------------------------------

($version)

Source from the content-addressed store, hash-verified

1311
1312 //----------------------------------------------------------------------
1313 public function setVersion($version)
1314 {
1315 if($version < 0 || $version > QRSPEC_VERSION_MAX) {
1316 throw new Exception('Invalid version no');
1317 return -1;
1318 }
1319
1320 $this->version = $version;
1321
1322 return 0;
1323 }
1324
1325 //----------------------------------------------------------------------
1326 public function getErrorCorrectionLevel()

Callers 1

convertDataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected