@@ -91,8 +91,9 @@ abstract class Zend_Barcode_Renderer_RendererAbstract
91
91
92
92
/**
93
93
* Constructor
94
+ *
94
95
* @param array|Zend_Config $options
95
- * @return void
96
+ * @return Zend_Barcode_Renderer_RendererAbstract
96
97
*/
97
98
public function __construct ($ options = null )
98
99
{
@@ -169,7 +170,7 @@ public function getType()
169
170
* Manually adjust top position
170
171
* @param integer $value
171
172
* @return Zend_Barcode_Renderer
172
- * @throw Zend_Barcode_Renderer_Exception
173
+ * @throws Zend_Barcode_Renderer_Exception
173
174
*/
174
175
public function setTopOffset ($ value )
175
176
{
@@ -196,7 +197,7 @@ public function getTopOffset()
196
197
* Manually adjust left position
197
198
* @param integer $value
198
199
* @return Zend_Barcode_Renderer
199
- * @throw Zend_Barcode_Renderer_Exception
200
+ * @throws Zend_Barcode_Renderer_Exception
200
201
*/
201
202
public function setLeftOffset ($ value )
202
203
{
@@ -221,7 +222,9 @@ public function getLeftOffset()
221
222
222
223
/**
223
224
* Activate/Deactivate the automatic rendering of exception
225
+ *
224
226
* @param boolean $value
227
+ * @return $this
225
228
*/
226
229
public function setAutomaticRenderError ($ value )
227
230
{
@@ -231,9 +234,10 @@ public function setAutomaticRenderError($value)
231
234
232
235
/**
233
236
* Horizontal position of the barcode in the rendering resource
237
+ *
234
238
* @param string $value
235
239
* @return Zend_Barcode_Renderer
236
- * @throw Zend_Barcode_Renderer_Exception
240
+ * @throws Zend_Barcode_Renderer_Exception
237
241
*/
238
242
public function setHorizontalPosition ($ value )
239
243
{
@@ -258,9 +262,10 @@ public function getHorizontalPosition()
258
262
259
263
/**
260
264
* Vertical position of the barcode in the rendering resource
265
+ *
261
266
* @param string $value
262
- * @return Zend_Barcode_Renderer
263
- * @throw Zend_Barcode_Renderer_Exception
267
+ * @return self
268
+ * @throws Zend_Barcode_Renderer_Exception
264
269
*/
265
270
public function setVerticalPosition ($ value )
266
271
{
@@ -287,7 +292,7 @@ public function getVerticalPosition()
287
292
* Set the size of a module
288
293
* @param float $value
289
294
* @return Zend_Barcode_Renderer
290
- * @throw Zend_Barcode_Renderer_Exception
295
+ * @throws Zend_Barcode_Renderer_Exception
291
296
*/
292
297
public function setModuleSize ($ value )
293
298
{
@@ -322,8 +327,10 @@ public function getAutomaticRenderError()
322
327
323
328
/**
324
329
* Set the barcode object
330
+ *
325
331
* @param Zend_Barcode_Object $barcode
326
332
* @return Zend_Barcode_Renderer
333
+ * @throws Zend_Barcode_Renderer_Exception
327
334
*/
328
335
public function setBarcode ($ barcode )
329
336
{
@@ -360,7 +367,7 @@ public function checkParams()
360
367
/**
361
368
* Check if a barcode object is correctly provided
362
369
* @return void
363
- * @throw Zend_Barcode_Renderer_Exception
370
+ * @throws Zend_Barcode_Renderer_Exception
364
371
*/
365
372
protected function _checkBarcodeObject ()
366
373
{
@@ -421,7 +428,10 @@ protected function _adjustPosition($supportHeight, $supportWidth)
421
428
422
429
/**
423
430
* Draw the barcode in the rendering resource
431
+ *
424
432
* @return mixed
433
+ * @throws Zend_Exception
434
+ * @throws Zend_Barcode_Exception
425
435
*/
426
436
public function draw ()
427
437
{
@@ -520,13 +530,14 @@ abstract protected function _drawPolygon($points, $color, $filled = true);
520
530
521
531
/**
522
532
* Draw a polygon in the rendering resource
523
- * @param string $text
524
- * @param float $size
525
- * @param array $position
526
- * @param string $font
527
- * @param integer $color
528
- * @param string $alignment
529
- * @param float $orientation
533
+ *
534
+ * @param string $text
535
+ * @param float $size
536
+ * @param array $position
537
+ * @param string $font
538
+ * @param integer $color
539
+ * @param string $alignment
540
+ * @param float|int $orientation
530
541
*/
531
542
abstract protected function _drawText (
532
543
$ text ,
0 commit comments