@@ -11,7 +11,7 @@ |
||
| 11 | 11 | * The original image resource will not be changed, a new image resource will be created. |
| 12 | 12 | * |
| 13 | 13 | * @param \resource $image The source image resource |
| 14 | - * @return \resource The black and white image resource |
|
| 14 | + * @return resource The black and white image resource |
|
| 15 | 15 | */ |
| 16 | 16 | public function process($image) |
| 17 | 17 | { |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | * The original image resource will not be changed, a new image resource will be created. |
| 12 | 12 | * |
| 13 | 13 | * @param \resource $image The source image resource |
| 14 | - * @return \resource The black and white image resource |
|
| 14 | + * @return resource The black and white image resource |
|
| 15 | 15 | */ |
| 16 | 16 | public function process($image) |
| 17 | 17 | { |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | * The original image resource will not be changed, a new image resource will be created. |
| 12 | 12 | * |
| 13 | 13 | * @param \resource $image The source image resource |
| 14 | - * @return \resource The black and white image resource |
|
| 14 | + * @return resource The black and white image resource |
|
| 15 | 15 | */ |
| 16 | 16 | public function process($image) |
| 17 | 17 | { |
@@ -66,6 +66,9 @@ |
||
| 66 | 66 | } |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | + /** |
|
| 70 | + * @param integer $lines |
|
| 71 | + */ |
|
| 69 | 72 | public function feed($lines) |
| 70 | 73 | { |
| 71 | 74 | if ($lines > 1) { |
@@ -104,6 +104,9 @@ discard block |
||
| 104 | 104 | return $this->columns; |
| 105 | 105 | } |
| 106 | 106 | |
| 107 | + /** |
|
| 108 | + * @param integer $columns |
|
| 109 | + */ |
|
| 107 | 110 | public function setColumns($columns) |
| 108 | 111 | { |
| 109 | 112 | $font = ['name' => 'Unknow']; |
@@ -271,6 +274,10 @@ discard block |
||
| 271 | 274 | return $this; |
| 272 | 275 | } |
| 273 | 276 | |
| 277 | + /** |
|
| 278 | + * @param integer $styles |
|
| 279 | + * @param integer $align |
|
| 280 | + */ |
|
| 274 | 281 | public function writeln($text, $styles, $align) |
| 275 | 282 | { |
| 276 | 283 | if ($align !== null) { |
@@ -336,7 +343,14 @@ discard block |
||
| 336 | 343 | $this->draw($image); |
| 337 | 344 | } |
| 338 | 345 | |
| 346 | + /** |
|
| 347 | + * @param integer $lines |
|
| 348 | + */ |
|
| 339 | 349 | abstract public function feed($lines); |
| 350 | + |
|
| 351 | + /** |
|
| 352 | + * @param integer $mode |
|
| 353 | + */ |
|
| 340 | 354 | abstract public function cutter($mode); |
| 341 | 355 | abstract public function buzzer(); |
| 342 | 356 | |
@@ -348,6 +362,14 @@ discard block |
||
| 348 | 362 | abstract public function drawer($number, $on_time, $off_time); |
| 349 | 363 | |
| 350 | 364 | abstract public function setAlignment($align); |
| 365 | + |
|
| 366 | + /** |
|
| 367 | + * @param boolean $enable |
|
| 368 | + */ |
|
| 351 | 369 | abstract protected function setMode($mode, $enable); |
| 370 | + |
|
| 371 | + /** |
|
| 372 | + * @param boolean $enable |
|
| 373 | + */ |
|
| 352 | 374 | abstract protected function setStyle($style, $enable); |
| 353 | 375 | } |