Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit b263ce8

Browse files
committed
Fixes DocBlocks in Zend_Barcode_Renderer_RendererAbstract
1 parent 9bed4b0 commit b263ce8

File tree

1 file changed

+26
-15
lines changed

1 file changed

+26
-15
lines changed

library/Zend/Barcode/Renderer/RendererAbstract.php

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,9 @@ abstract class Zend_Barcode_Renderer_RendererAbstract
9191

9292
/**
9393
* Constructor
94+
*
9495
* @param array|Zend_Config $options
95-
* @return void
96+
* @return Zend_Barcode_Renderer_RendererAbstract
9697
*/
9798
public function __construct($options = null)
9899
{
@@ -169,7 +170,7 @@ public function getType()
169170
* Manually adjust top position
170171
* @param integer $value
171172
* @return Zend_Barcode_Renderer
172-
* @throw Zend_Barcode_Renderer_Exception
173+
* @throws Zend_Barcode_Renderer_Exception
173174
*/
174175
public function setTopOffset($value)
175176
{
@@ -196,7 +197,7 @@ public function getTopOffset()
196197
* Manually adjust left position
197198
* @param integer $value
198199
* @return Zend_Barcode_Renderer
199-
* @throw Zend_Barcode_Renderer_Exception
200+
* @throws Zend_Barcode_Renderer_Exception
200201
*/
201202
public function setLeftOffset($value)
202203
{
@@ -221,7 +222,9 @@ public function getLeftOffset()
221222

222223
/**
223224
* Activate/Deactivate the automatic rendering of exception
225+
*
224226
* @param boolean $value
227+
* @return $this
225228
*/
226229
public function setAutomaticRenderError($value)
227230
{
@@ -231,9 +234,10 @@ public function setAutomaticRenderError($value)
231234

232235
/**
233236
* Horizontal position of the barcode in the rendering resource
237+
*
234238
* @param string $value
235239
* @return Zend_Barcode_Renderer
236-
* @throw Zend_Barcode_Renderer_Exception
240+
* @throws Zend_Barcode_Renderer_Exception
237241
*/
238242
public function setHorizontalPosition($value)
239243
{
@@ -258,9 +262,10 @@ public function getHorizontalPosition()
258262

259263
/**
260264
* Vertical position of the barcode in the rendering resource
265+
*
261266
* @param string $value
262-
* @return Zend_Barcode_Renderer
263-
* @throw Zend_Barcode_Renderer_Exception
267+
* @return self
268+
* @throws Zend_Barcode_Renderer_Exception
264269
*/
265270
public function setVerticalPosition($value)
266271
{
@@ -287,7 +292,7 @@ public function getVerticalPosition()
287292
* Set the size of a module
288293
* @param float $value
289294
* @return Zend_Barcode_Renderer
290-
* @throw Zend_Barcode_Renderer_Exception
295+
* @throws Zend_Barcode_Renderer_Exception
291296
*/
292297
public function setModuleSize($value)
293298
{
@@ -322,8 +327,10 @@ public function getAutomaticRenderError()
322327

323328
/**
324329
* Set the barcode object
330+
*
325331
* @param Zend_Barcode_Object $barcode
326332
* @return Zend_Barcode_Renderer
333+
* @throws Zend_Barcode_Renderer_Exception
327334
*/
328335
public function setBarcode($barcode)
329336
{
@@ -360,7 +367,7 @@ public function checkParams()
360367
/**
361368
* Check if a barcode object is correctly provided
362369
* @return void
363-
* @throw Zend_Barcode_Renderer_Exception
370+
* @throws Zend_Barcode_Renderer_Exception
364371
*/
365372
protected function _checkBarcodeObject()
366373
{
@@ -421,7 +428,10 @@ protected function _adjustPosition($supportHeight, $supportWidth)
421428

422429
/**
423430
* Draw the barcode in the rendering resource
431+
*
424432
* @return mixed
433+
* @throws Zend_Exception
434+
* @throws Zend_Barcode_Exception
425435
*/
426436
public function draw()
427437
{
@@ -520,13 +530,14 @@ abstract protected function _drawPolygon($points, $color, $filled = true);
520530

521531
/**
522532
* 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
530541
*/
531542
abstract protected function _drawText(
532543
$text,

0 commit comments

Comments
 (0)