Lines Matching refs:code
13 * @param string $code
16 public function __construct($code, $printRatio, $quiet_zone_left = null, $quiet_zone_right = null)
18 $this->init($code, $printRatio);
28 * @param string $code
31 private function init($code, $printRatio)
48 $bararray = ['code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => []];
52 $len = strlen($code);
59 $digit = $code[$i];
78 $code .= $check;
86 $digit = $code[$i];
99 $code .= $check;
104 $code = 'S' . $code . 'S';
109 if (!isset($chr[$code[$i]])) {
110 throw new \Mpdf\Barcode\BarcodeException(sprintf('Invalid character "%s" in CODE11 barcode value "%s"', $code[$i], $code));
113 $seq = $chr[$code[$i]];