Lines Matching refs:code
14 * @param string $code
22 public function __construct($code, $length, $leftMargin, $rightMargin, $xDim, $barHeight, $separatorMargin)
24 $this->init($code, $length);
34 * @param string $code
37 private function init($code, $length = 5)
40 $code = str_pad($code, $length, '0', STR_PAD_LEFT);
44 $r = $code % 4;
46 $r = (3 * ($code[0] + $code[2] + $code[4])) + (9 * ($code[1] + $code[3]));
49 throw new \Mpdf\Barcode\BarcodeException(sprintf('Invalid EAN barcode value "%s"', $code));
98 $seq .= $codes[$p[0]][$code[0]];
101 $seq .= $codes[$p[$i]][$code[$i]];
104 $bararray = ['code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => []];