|
|
@@ -91,9 +91,10 @@ class Zend_Barcode_Renderer_Image extends Zend_Barcode_Renderer_RendererAbstract
|
|
|
|
|
|
/**
|
|
|
* Set height of the result image
|
|
|
+ *
|
|
|
* @param null|integer $value
|
|
|
* @return Zend_Image_Barcode_Abstract
|
|
|
- * @throw Zend_Image_Barcode_Exception
|
|
|
+ * @throws Zend_Barcode_Renderer_Exception
|
|
|
*/
|
|
|
public function setHeight($value)
|
|
|
{
|
|
|
@@ -121,7 +122,8 @@ class Zend_Barcode_Renderer_Image extends Zend_Barcode_Renderer_RendererAbstract
|
|
|
* Set barcode width
|
|
|
*
|
|
|
* @param mixed $value
|
|
|
- * @return void
|
|
|
+ * @return self
|
|
|
+ * @throws Zend_Barcode_Renderer_Exception
|
|
|
*/
|
|
|
public function setWidth($value)
|
|
|
{
|
|
|
@@ -148,9 +150,9 @@ class Zend_Barcode_Renderer_Image extends Zend_Barcode_Renderer_RendererAbstract
|
|
|
/**
|
|
|
* Set an image resource to draw the barcode inside
|
|
|
*
|
|
|
- * @param resource $value
|
|
|
+ * @param $image
|
|
|
* @return Zend_Barcode_Renderer
|
|
|
- * @throw Zend_Barcode_Renderer_Exception
|
|
|
+ * @throws Zend_Barcode_Renderer_Exception
|
|
|
*/
|
|
|
public function setResource($image)
|
|
|
{
|
|
|
@@ -169,7 +171,7 @@ class Zend_Barcode_Renderer_Image extends Zend_Barcode_Renderer_RendererAbstract
|
|
|
*
|
|
|
* @param string $value
|
|
|
* @return Zend_Barcode_RendererAbstract
|
|
|
- * @throw Zend_Barcode_Renderer_Exception
|
|
|
+ * @throws Zend_Barcode_Renderer_Exception
|
|
|
*/
|
|
|
public function setImageType($value)
|
|
|
{
|
|
|
@@ -203,6 +205,7 @@ class Zend_Barcode_Renderer_Image extends Zend_Barcode_Renderer_RendererAbstract
|
|
|
* Initialize the image resource
|
|
|
*
|
|
|
* @return void
|
|
|
+ * @throws Zend_Barcode_Exception
|
|
|
*/
|
|
|
protected function _initRenderer()
|
|
|
{
|
|
|
@@ -287,6 +290,7 @@ class Zend_Barcode_Renderer_Image extends Zend_Barcode_Renderer_RendererAbstract
|
|
|
* Check barcode dimensions
|
|
|
*
|
|
|
* @return void
|
|
|
+ * @throws Zend_Barcode_Renderer_Exception
|
|
|
*/
|
|
|
protected function _checkDimensions()
|
|
|
{
|
|
|
@@ -383,13 +387,14 @@ class Zend_Barcode_Renderer_Image extends Zend_Barcode_Renderer_RendererAbstract
|
|
|
/**
|
|
|
* Draw a polygon in the image resource
|
|
|
*
|
|
|
- * @param string $text
|
|
|
- * @param float $size
|
|
|
- * @param array $position
|
|
|
- * @param string $font
|
|
|
- * @param integer $color
|
|
|
- * @param string $alignment
|
|
|
- * @param float $orientation
|
|
|
+ * @param string $text
|
|
|
+ * @param float $size
|
|
|
+ * @param array $position
|
|
|
+ * @param string $font
|
|
|
+ * @param integer $color
|
|
|
+ * @param string $alignment
|
|
|
+ * @param float|int $orientation
|
|
|
+ * @throws Zend_Barcode_Renderer_Exception
|
|
|
*/
|
|
|
protected function _drawText($text, $size, $position, $font, $color, $alignment = 'center', $orientation = 0)
|
|
|
{
|