PluginProbe
WCPOS – Point of Sale (POS) plugin for WooCommerce / 1.10.20
WCPOS – Point of Sale (POS) plugin for WooCommerce v1.10.20
1.10.20 1.10.19 1.10.18 1.10.17 1.10.16 1.10.15 1.10.13 1.10.14 1.10.12 1.10.11 1.10.10 1.10.9 1.10.8 untagged-3d9b7ccddc54df87c672 1.10.7 1.10.6 1.10.5 1.10.3 1.10.4 1.10.2 1.10.1 1.10.0 1.9.17 1.9.15 1.9.16 All 164 releases
woocommerce-pos / vendor_prefixed / picqer / php-barcode-generator / src / BarcodeBar.php

BarcodeBar.php in WCPOS – Point of Sale (POS) plugin for WooCommerce 1.10.20, at vendor_prefixed/picqer/php-barcode-generator/src/BarcodeBar.php

37 lines 877 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace WCPOS\Vendor\Picqer\Barcode;
4
5 class BarcodeBar
6 {
7 protected $width;
8 protected $height;
9 protected $positionVertical;
10 protected $type;
11 const TYPE_BAR = 1;
12 const TYPE_SPACING = 0;
13 public function __construct(int $width, int $height, bool $drawBar = \true, int $positionVertical = 0)
14 {
15 $this->width = $width;
16 $this->height = $height;
17 $this->positionVertical = $positionVertical;
18 $this->type = $drawBar ? self::TYPE_BAR : self::TYPE_SPACING;
19 }
20 public function getWidth() : int
21 {
22 return $this->width;
23 }
24 public function getHeight() : int
25 {
26 return $this->height;
27 }
28 public function getPositionVertical() : int
29 {
30 return $this->positionVertical;
31 }
32 public function isBar() : bool
33 {
34 return $this->type === self::TYPE_BAR;
35 }
36 }
37