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

Method __construct

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

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

($version = 0, $level = QR_ECLEVEL_L)

Source from the content-addressed store, hash-verified

280
281 //----------------------------------------------------------------------
282 public function __construct($version = 0, $level = QR_ECLEVEL_L)
283 {
284 if ($version < 0 || $version > QRSPEC_VERSION_MAX || $level > QR_ECLEVEL_H) {
285 throw new Exception('Invalid version no');
286 return NULL;
287 }
288
289 $this->version = $version;
290 $this->level = $level;
291 }
292
293 //----------------------------------------------------------------------
294 public function getVersion()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected