@@ -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']; |
@@ -255,6 +258,10 @@ discard block |
||
| 255 | 258 | { |
| 256 | 259 | } |
| 257 | 260 | |
| 261 | + /** |
|
| 262 | + * @param integer $styles |
|
| 263 | + * @param integer $align |
|
| 264 | + */ |
|
| 258 | 265 | public function write($text, $styles, $align) |
| 259 | 266 | { |
| 260 | 267 | if ($align !== null) { |
@@ -311,7 +318,14 @@ discard block |
||
| 311 | 318 | $this->draw($image); |
| 312 | 319 | } |
| 313 | 320 | |
| 321 | + /** |
|
| 322 | + * @param integer $lines |
|
| 323 | + */ |
|
| 314 | 324 | abstract public function feed($lines); |
| 325 | + |
|
| 326 | + /** |
|
| 327 | + * @param integer $mode |
|
| 328 | + */ |
|
| 315 | 329 | abstract public function cutter($mode); |
| 316 | 330 | abstract public function buzzer(); |
| 317 | 331 | |
@@ -323,6 +337,14 @@ discard block |
||
| 323 | 337 | abstract public function drawer($number, $on_time, $off_time); |
| 324 | 338 | |
| 325 | 339 | abstract public function setAlignment($align); |
| 340 | + |
|
| 341 | + /** |
|
| 342 | + * @param boolean $enable |
|
| 343 | + */ |
|
| 326 | 344 | abstract protected function setMode($mode, $enable); |
| 345 | + |
|
| 346 | + /** |
|
| 347 | + * @param boolean $enable |
|
| 348 | + */ |
|
| 327 | 349 | abstract protected function setStyle($style, $enable); |
| 328 | 350 | } |