1 | <?php |
||
5 | class Printer |
||
6 | { |
||
7 | const ALIGN_LEFT = 0; |
||
8 | const ALIGN_CENTER = 1; |
||
9 | const ALIGN_RIGHT = 2; |
||
10 | |||
11 | const STYLE_BOLD = 1; |
||
12 | const STYLE_ITALIC = 2; |
||
13 | const STYLE_UNDERLINE = 4; |
||
14 | const STYLE_CONDENSED = 8; |
||
15 | const STYLE_DOUBLE_WIDTH = 16; |
||
16 | const STYLE_DOUBLE_HEIGHT = 32; |
||
17 | |||
18 | const CUT_FULL = 0; |
||
19 | const CUT_PARTIAL = 1; |
||
20 | |||
21 | const DRAWER_1 = 0; |
||
22 | const DRAWER_2 = 1; |
||
23 | |||
24 | /** |
||
25 | * Model |
||
26 | * |
||
27 | * @var Model |
||
28 | */ |
||
29 | private $model; |
||
30 | |||
31 | /** |
||
32 | * Constructor |
||
33 | * |
||
34 | * @param Model $model |
||
35 | * @param Connection\Connection $connection |
||
36 | */ |
||
37 | 12 | public function __construct($model, $connection) |
|
44 | |||
45 | 1 | public function setCodePage($codepage) |
|
50 | |||
51 | 1 | public function buzzer() |
|
56 | |||
57 | 1 | public function cutter($mode = self::CUT_PARTIAL) |
|
62 | |||
63 | /** |
||
64 | * @param int $number drawer id |
||
65 | * @param int $on_time time in milliseconds that activate the drawer |
||
66 | * @param int $off_time time in milliseconds that deactivate the drawer |
||
67 | */ |
||
68 | 2 | public function drawer($number = self::DRAWER_1, $on_time = 120, $off_time = 240) |
|
73 | |||
74 | 1 | public function draw($image) |
|
79 | |||
80 | 1 | public function qrcode($data, $size = null) |
|
85 | |||
86 | 2 | public function setAlignment($align) |
|
91 | |||
92 | 2 | public function write($text, $styles = 0, $align = self::ALIGN_LEFT) |
|
97 | |||
98 | 1 | public function writeln($text, $styles = 0, $align = self::ALIGN_LEFT) |
|
106 | |||
107 | 2 | public function feed($lines = 1) |
|
112 | |||
113 | 4 | public function getColumns() |
|
117 | |||
118 | /** |
||
119 | * Set columns aproximated to informed |
||
120 | * @param int $columns aproximated number of columns |
||
121 | */ |
||
122 | 4 | public function setColumns($columns) |
|
127 | |||
128 | 1 | public function close() |
|
133 | } |
||
134 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.