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

Method setVersion

text-to-qr/lib/phpqrcode/qrinput.php:300–310  ·  view source on GitHub ↗

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

($version)

Source from the content-addressed store, hash-verified

298
299 //----------------------------------------------------------------------
300 public function setVersion($version)
301 {
302 if($version < 0 || $version > QRSPEC_VERSION_MAX) {
303 throw new Exception('Invalid version no');
304 return -1;
305 }
306
307 $this->version = $version;
308
309 return 0;
310 }
311
312 //----------------------------------------------------------------------
313 public function getErrorCorrectionLevel()

Callers 1

convertDataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected