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

Method __construct

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

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

($version = 0, $level = QR_ECLEVEL_L)

Source from the content-addressed store, hash-verified

1293
1294 //----------------------------------------------------------------------
1295 public function __construct($version = 0, $level = QR_ECLEVEL_L)
1296 {
1297 if ($version < 0 || $version > QRSPEC_VERSION_MAX || $level > QR_ECLEVEL_H) {
1298 throw new Exception('Invalid version no');
1299 return NULL;
1300 }
1301
1302 $this->version = $version;
1303 $this->level = $level;
1304 }
1305
1306 //----------------------------------------------------------------------
1307 public function getVersion()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected