Skip to content

Commit cb6f30c

Browse files
committed
1.1.3 changes
1 parent 4df0861 commit cb6f30c

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Changelog
22

3-
All notable changes to `laravel-printing` will be documented in this file
3+
All notable changes to `laravel-printing` will be documented in this file.
4+
5+
## 1.1.3 - 2020-07-09
6+
7+
### Changed
8+
- Add return type `string` to `id()` method on PrintNode Printer.
9+
- Add more method doc blocks to `ReceiptPrinter` for type hinting to underlying printer class.
410

511
## 1.1.2 - 2020-07-08
612

src/Drivers/PrintNode/Entity/Printer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function description(): ?string
3535
return $this->printer->description;
3636
}
3737

38-
public function id()
38+
public function id(): string
3939
{
4040
return $this->printer->id;
4141
}

src/Receipts/ReceiptPrinter.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,31 @@
88
use Mike42\Escpos\Printer;
99

1010
/**
11+
* @see Printer
12+
* @method self bitImage(\Mike42\Escpos\EscposImage $image, $size)
1113
* @method self close()
1214
* @method self cut(int $mode = Printer::CUT_FULL, int $lines = 3)
15+
* @method self feed(int $lines = 1)
16+
* @method self feedForm()
17+
* @method self feedReverse(int $lines = 1)
18+
* @method self graphics(\Mike42\Escpos\EscposImage $image, $size)
19+
* @method self pdf417Code(string $content, int $width = 3, int $heightMultiplier = 3, int $dataColumnCount = 0, float $ec = 0.10, int $options = Printer::PDF417_STANDARD)
20+
* @method self pulse(int $pin = 0, int $on_ms = 120, int $off_ms = 240)
21+
* @method self qrCode(string $content, int $ec = Printer::QR_ECLEVEL_L, int $size = 3, int $model = Printer::QR_MODEL_2)
22+
* @method self selectPrintMode(int $mode = Printer::MODE_FONT_A)
1323
* @method self setBarcodeHeight(int $height = 8)
1424
* @method self setBarcodeWidth(int $width = 3)
25+
* @method self setColor(int $color = Printer::COLOR_1)
26+
* @method self setDoubleStrike(bool $on = true)
27+
* @method self setEmphasis(bool $on = true)
28+
* @method self setFont(int $font = Printer::FONT_A)
1529
* @method self setJustification(int $justification = Printer::JUSTIFY_LEFT)
1630
* @method self setLineSpacing(int $height = null)
1731
* @method self setPrintLeftMargin(int $margin = 0)
32+
* @method self setPrintWidth(int $width = 512)
33+
* @method self setReverseColors(bool $on = true)
34+
* @method self setTextSize(int $widthMultiplier, int $heightMultiplier)
35+
* @method self setUnderline(int $underline = Printer::UNDERLINE_SINGLE)
1836
*/
1937
class ReceiptPrinter
2038
{

0 commit comments

Comments
 (0)