public function getCharacterCountBits(Version $version) : int
    {
        $number = $version->getVersionNumber();

        if ($number <= 9) {
            $offset = 0;
        } elseif ($number <= 26) {
            $offset = 1;
        } else {
            $offset = 2;
        }

        return $this->characterCountBitsForVersions[$offset];
    }
public function getCharacterCountBits(Version $version) : int
    {
        $number = $version->getVersionNumber();

        if ($number <= 9) {
            $offset = 0;
        } elseif ($number <= 26) {
            $offset = 1;
        } else {
            $offset = 2;
        }

        return $this->characterCountBitsForVersions[$offset];
    }
public function getCharacterCountBits ( Version $ version ) : int { $ number = $ version -> getVersionNumber ( ) ; if ( $ number <= 9 ) { $ offset = 0 ; } elseif ( $ number <= 26 ) { $ offset = 1 ; } else { $ offset = 2 ; } return $ this -> characterCountBitsForVersions [ $ offset ] ; }
Returns the number of bits used in a specific QR code version.
Returns the number of bits used in a specific QR code version .