1 | <?php |
||
28 | class PaymentSlipFpdf extends PaymentSlipPdf |
||
29 | { |
||
30 | /** |
||
31 | * A caching table for hex to RGB conversions |
||
32 | * |
||
33 | * @var array |
||
34 | */ |
||
35 | protected $rgbColors = array(); |
||
36 | |||
37 | /** |
||
38 | * The PDF engine object to generate the PDF output with |
||
39 | * |
||
40 | * @var null|FPDF The PDF engine object |
||
41 | */ |
||
42 | protected $pdfEngine = null; |
||
43 | |||
44 | /** |
||
45 | * The last set font family, prevents the PDF engine to re-set the same values over and over |
||
46 | * |
||
47 | * @var string; |
||
48 | */ |
||
49 | protected $lastFontFamily = ''; |
||
50 | |||
51 | /** |
||
52 | * The last set font size, prevents the PDF engine to re-set the same values over and over |
||
53 | * |
||
54 | * @var int|double; |
||
55 | */ |
||
56 | protected $lastFontSize = ''; |
||
57 | |||
58 | /** |
||
59 | * The last set font color, prevents the PDF engine to re-set the same values over and over |
||
60 | * |
||
61 | * @var string; |
||
62 | */ |
||
63 | protected $lastFontColor = ''; |
||
64 | |||
65 | /** |
||
66 | * {@inheritDoc} |
||
67 | */ |
||
68 | protected function displayImage($background) |
||
83 | |||
84 | /** |
||
85 | * {@inheritDoc} |
||
86 | */ |
||
87 | protected function setFont($fontFamily, $fontSize, $fontColor) |
||
106 | |||
107 | /** |
||
108 | * {@inheritDoc} |
||
109 | */ |
||
110 | protected function setBackground($background) |
||
119 | |||
120 | /** |
||
121 | * {@inheritDoc} |
||
122 | */ |
||
123 | protected function setPosition($posX, $posY) |
||
129 | |||
130 | /** |
||
131 | * {@inheritDoc} |
||
132 | */ |
||
133 | protected function createCell($width, $height, $line, $textAlign, $fill) |
||
139 | |||
140 | /** |
||
141 | * {@inheritDoc} |
||
142 | */ |
||
143 | protected function convertColor2Rgb($color) |
||
151 | |||
152 | /** |
||
153 | * Convert hexadecimal color code into an associative array or string of RGB values |
||
154 | * |
||
155 | * @param string $hexStr The hexadecimal color code (3 or 6 characters long) |
||
156 | * @param bool $returnAsString Whether to return as a string or array. |
||
157 | * @param string $separator The separator for the RGB value string, defaults to ",". |
||
158 | * @return array|string|false The RGB values as an associative array or a string. |
||
159 | * False if an invalid color code was given. |
||
160 | * |
||
161 | * @copyright 2010 hafees at msn dot com |
||
162 | * @link http://www.php.net/manual/en/function.hexdec.php#99478 |
||
163 | * @todo Throw an exception if an invalid hex color code was given |
||
164 | */ |
||
165 | protected function hex2RGB($hexStr, $returnAsString = false, $separator = ',') |
||
187 | } |
||
188 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..