allow vendord
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 3m3s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 16s
Build, Push and Deploy / deploy-staging (push) Successful in 32s
Build, Push and Deploy / deploy-production (push) Has been skipped
Build, Push and Deploy / cleanup (push) Successful in 1s
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 3m3s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 16s
Build, Push and Deploy / deploy-staging (push) Successful in 32s
Build, Push and Deploy / deploy-production (push) Has been skipped
Build, Push and Deploy / cleanup (push) Successful in 1s
This commit is contained in:
58
vendor/ageekdev/laravel-barcode/src/BarcodeBar.php
vendored
Normal file
58
vendor/ageekdev/laravel-barcode/src/BarcodeBar.php
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
|
||||
namespace AgeekDev\Barcode;
|
||||
|
||||
class BarcodeBar
|
||||
{
|
||||
protected int $width;
|
||||
|
||||
protected int $height;
|
||||
|
||||
protected int $positionVertical;
|
||||
|
||||
protected int $type;
|
||||
|
||||
public const TYPE_BAR = 1;
|
||||
|
||||
public const TYPE_SPACING = 0;
|
||||
|
||||
public function __construct(int $width, int $height, bool $drawBar = true, int $positionVertical = 0)
|
||||
{
|
||||
$this->width = $width;
|
||||
$this->height = $height;
|
||||
$this->positionVertical = $positionVertical;
|
||||
$this->type = $drawBar ? self::TYPE_BAR : self::TYPE_SPACING;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the width.
|
||||
*/
|
||||
public function getWidth(): int
|
||||
{
|
||||
return $this->width;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the height.
|
||||
*/
|
||||
public function getHeight(): int
|
||||
{
|
||||
return $this->height;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get position vertical.
|
||||
*/
|
||||
public function getPositionVertical(): int
|
||||
{
|
||||
return $this->positionVertical;
|
||||
}
|
||||
|
||||
/**
|
||||
* Bar or not.
|
||||
*/
|
||||
public function isBar(): bool
|
||||
{
|
||||
return $this->type === self::TYPE_BAR;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user