vendor/bacon/bacon-qr-code/src/BaconQrCode/Common/EcBlock.php

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php
/**
 * BaconQrCode
 *
 * @link      http://github.com/Bacon/BaconQrCode For the canonical source repository
 * @copyright 2013 Ben 'DASPRiD' Scholzen
 * @license   http://opensource.org/licenses/BSD-2-Clause Simplified BSD License
 */

namespace BaconQrCode\Common;

/**
 * Encapsualtes the parameters for one error-correction block in one symbol
 * version. This includes the number of data codewords, and the number of times
 * a block with these parameters is used consecutively in the QR code version's
 * format.
 */
class EcBlock
{
    /**
     * How many times the block is used.
     *
     * @var integer
     */
    protected $count;

    /**
     * Number of data codewords.
     *
     * @var integer
     */
    protected $dataCodewords;

    /**
     * Creates a new EC block.
     *
     * @param integer $count
     * @param integer $dataCodewords
     */
    public function __construct($count, $dataCodewords)
    {
        $this->count         = $count;
        $this->dataCodewords = $dataCodewords;
    }

    /**
     * Returns how many times the block is used.
     *
     * @return integer
     */
    public function getCount()
    {
        return $this->count;
    }

    /**
     * Returns the number of data codewords.
     *
     * @return integer
     */

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。