@@ -60,9 +60,10 @@ class Zend_Barcode_Renderer_Svg extends Zend_Barcode_Renderer_RendererAbstract
60
60
61
61
/**
62
62
* Set height of the result image
63
+ *
63
64
* @param null|integer $value
64
65
* @return Zend_Image_Barcode_Abstract
65
- * @throw Zend_Image_Barcode_Exception
66
+ * @throws Zend_Barcode_Renderer_Exception
66
67
*/
67
68
public function setHeight ($ value )
68
69
{
@@ -90,7 +91,8 @@ public function getHeight()
90
91
* Set barcode width
91
92
*
92
93
* @param mixed $value
93
- * @return void
94
+ * @return self
95
+ * @throws Zend_Barcode_Renderer_Exception
94
96
*/
95
97
public function setWidth ($ value )
96
98
{
@@ -117,9 +119,9 @@ public function getWidth()
117
119
/**
118
120
* Set an image resource to draw the barcode inside
119
121
*
120
- * @param DOMDocument $value
122
+ * @param $svg
121
123
* @return Zend_Barcode_Renderer
122
- * @throw Zend_Barcode_Renderer_Exception
124
+ * @throws Zend_Barcode_Renderer_Exception
123
125
*/
124
126
public function setResource ($ svg )
125
127
{
@@ -237,6 +239,7 @@ protected function _checkParams()
237
239
* Check barcode dimensions
238
240
*
239
241
* @return void
242
+ * @throws Zend_Barcode_Renderer_Exception
240
243
*/
241
244
protected function _checkDimensions ()
242
245
{
@@ -341,13 +344,13 @@ protected function _drawPolygon($points, $color, $filled = true)
341
344
/**
342
345
* Draw a polygon in the svg resource
343
346
*
344
- * @param string $text
345
- * @param float $size
346
- * @param array $position
347
- * @param string $font
348
- * @param integer $color
349
- * @param string $alignment
350
- * @param float $orientation
347
+ * @param string $text
348
+ * @param float $size
349
+ * @param array $position
350
+ * @param string $font
351
+ * @param integer $color
352
+ * @param string $alignment
353
+ * @param float|int $orientation
351
354
*/
352
355
protected function _drawText ($ text , $ size , $ position , $ font , $ color , $ alignment = 'center ' , $ orientation = 0 )
353
356
{
0 commit comments