----------------------------------------------------------------------
($version)
| 350 | |
| 351 | //---------------------------------------------------------------------- |
| 352 | public static function getVersionPattern($version) |
| 353 | { |
| 354 | if($version < 7 || $version > QRSPEC_VERSION_MAX) |
| 355 | return 0; |
| 356 | |
| 357 | return self::$versionPattern[$version -7]; |
| 358 | } |
| 359 | |
| 360 | // Format information -------------------------------------------------- |
| 361 | // See calcFormatInfo in tests/test_qrspec.c (orginal qrencode c lib) |