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

Commit 9bde071

Browse files
committed
Fixes DocBlocks in Zend_Barcode_Renderer_Svg
1 parent b263ce8 commit 9bde071

File tree

1 file changed

+14
-11
lines changed
  • library/Zend/Barcode/Renderer

1 file changed

+14
-11
lines changed

library/Zend/Barcode/Renderer/Svg.php

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@ class Zend_Barcode_Renderer_Svg extends Zend_Barcode_Renderer_RendererAbstract
6060

6161
/**
6262
* Set height of the result image
63+
*
6364
* @param null|integer $value
6465
* @return Zend_Image_Barcode_Abstract
65-
* @throw Zend_Image_Barcode_Exception
66+
* @throws Zend_Barcode_Renderer_Exception
6667
*/
6768
public function setHeight($value)
6869
{
@@ -90,7 +91,8 @@ public function getHeight()
9091
* Set barcode width
9192
*
9293
* @param mixed $value
93-
* @return void
94+
* @return self
95+
* @throws Zend_Barcode_Renderer_Exception
9496
*/
9597
public function setWidth($value)
9698
{
@@ -117,9 +119,9 @@ public function getWidth()
117119
/**
118120
* Set an image resource to draw the barcode inside
119121
*
120-
* @param DOMDocument $value
122+
* @param $svg
121123
* @return Zend_Barcode_Renderer
122-
* @throw Zend_Barcode_Renderer_Exception
124+
* @throws Zend_Barcode_Renderer_Exception
123125
*/
124126
public function setResource($svg)
125127
{
@@ -237,6 +239,7 @@ protected function _checkParams()
237239
* Check barcode dimensions
238240
*
239241
* @return void
242+
* @throws Zend_Barcode_Renderer_Exception
240243
*/
241244
protected function _checkDimensions()
242245
{
@@ -341,13 +344,13 @@ protected function _drawPolygon($points, $color, $filled = true)
341344
/**
342345
* Draw a polygon in the svg resource
343346
*
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
351354
*/
352355
protected function _drawText($text, $size, $position, $font, $color, $alignment = 'center', $orientation = 0)
353356
{

0 commit comments

Comments
 (0)