@@ -91,9 +91,10 @@ public function __construct($options = null)
91
91
92
92
/**
93
93
* Set height of the result image
94
+ *
94
95
* @param null|integer $value
95
96
* @return Zend_Image_Barcode_Abstract
96
- * @throw Zend_Image_Barcode_Exception
97
+ * @throws Zend_Barcode_Renderer_Exception
97
98
*/
98
99
public function setHeight ($ value )
99
100
{
@@ -121,7 +122,8 @@ public function getHeight()
121
122
* Set barcode width
122
123
*
123
124
* @param mixed $value
124
- * @return void
125
+ * @return self
126
+ * @throws Zend_Barcode_Renderer_Exception
125
127
*/
126
128
public function setWidth ($ value )
127
129
{
@@ -148,9 +150,9 @@ public function getWidth()
148
150
/**
149
151
* Set an image resource to draw the barcode inside
150
152
*
151
- * @param resource $value
153
+ * @param $image
152
154
* @return Zend_Barcode_Renderer
153
- * @throw Zend_Barcode_Renderer_Exception
155
+ * @throws Zend_Barcode_Renderer_Exception
154
156
*/
155
157
public function setResource ($ image )
156
158
{
@@ -169,7 +171,7 @@ public function setResource($image)
169
171
*
170
172
* @param string $value
171
173
* @return Zend_Barcode_RendererAbstract
172
- * @throw Zend_Barcode_Renderer_Exception
174
+ * @throws Zend_Barcode_Renderer_Exception
173
175
*/
174
176
public function setImageType ($ value )
175
177
{
@@ -203,6 +205,7 @@ public function getImageType()
203
205
* Initialize the image resource
204
206
*
205
207
* @return void
208
+ * @throws Zend_Barcode_Exception
206
209
*/
207
210
protected function _initRenderer ()
208
211
{
@@ -287,6 +290,7 @@ protected function _checkParams()
287
290
* Check barcode dimensions
288
291
*
289
292
* @return void
293
+ * @throws Zend_Barcode_Renderer_Exception
290
294
*/
291
295
protected function _checkDimensions ()
292
296
{
@@ -383,13 +387,14 @@ protected function _drawPolygon($points, $color, $filled = true)
383
387
/**
384
388
* Draw a polygon in the image resource
385
389
*
386
- * @param string $text
387
- * @param float $size
388
- * @param array $position
389
- * @param string $font
390
- * @param integer $color
391
- * @param string $alignment
392
- * @param float $orientation
390
+ * @param string $text
391
+ * @param float $size
392
+ * @param array $position
393
+ * @param string $font
394
+ * @param integer $color
395
+ * @param string $alignment
396
+ * @param float|int $orientation
397
+ * @throws Zend_Barcode_Renderer_Exception
393
398
*/
394
399
protected function _drawText ($ text , $ size , $ position , $ font , $ color , $ alignment = 'center ' , $ orientation = 0 )
395
400
{
0 commit comments