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

Commit ed5bf1e

Browse files
committed
Fixes DocBlocks in Zend_Barcode_Renderer_Image
1 parent 12492a4 commit ed5bf1e

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

library/Zend/Barcode/Renderer/Image.php

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,10 @@ public function __construct($options = null)
9191

9292
/**
9393
* Set height of the result image
94+
*
9495
* @param null|integer $value
9596
* @return Zend_Image_Barcode_Abstract
96-
* @throw Zend_Image_Barcode_Exception
97+
* @throws Zend_Barcode_Renderer_Exception
9798
*/
9899
public function setHeight($value)
99100
{
@@ -121,7 +122,8 @@ public function getHeight()
121122
* Set barcode width
122123
*
123124
* @param mixed $value
124-
* @return void
125+
* @return self
126+
* @throws Zend_Barcode_Renderer_Exception
125127
*/
126128
public function setWidth($value)
127129
{
@@ -148,9 +150,9 @@ public function getWidth()
148150
/**
149151
* Set an image resource to draw the barcode inside
150152
*
151-
* @param resource $value
153+
* @param $image
152154
* @return Zend_Barcode_Renderer
153-
* @throw Zend_Barcode_Renderer_Exception
155+
* @throws Zend_Barcode_Renderer_Exception
154156
*/
155157
public function setResource($image)
156158
{
@@ -169,7 +171,7 @@ public function setResource($image)
169171
*
170172
* @param string $value
171173
* @return Zend_Barcode_RendererAbstract
172-
* @throw Zend_Barcode_Renderer_Exception
174+
* @throws Zend_Barcode_Renderer_Exception
173175
*/
174176
public function setImageType($value)
175177
{
@@ -203,6 +205,7 @@ public function getImageType()
203205
* Initialize the image resource
204206
*
205207
* @return void
208+
* @throws Zend_Barcode_Exception
206209
*/
207210
protected function _initRenderer()
208211
{
@@ -287,6 +290,7 @@ protected function _checkParams()
287290
* Check barcode dimensions
288291
*
289292
* @return void
293+
* @throws Zend_Barcode_Renderer_Exception
290294
*/
291295
protected function _checkDimensions()
292296
{
@@ -383,13 +387,14 @@ protected function _drawPolygon($points, $color, $filled = true)
383387
/**
384388
* Draw a polygon in the image resource
385389
*
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
393398
*/
394399
protected function _drawText($text, $size, $position, $font, $color, $alignment = 'center', $orientation = 0)
395400
{

0 commit comments

Comments
 (0)