Skip to content

Commit

Permalink
Merge remote-tracking branch 'Maks3w/patch-3'
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanDotPro committed Apr 25, 2012
2 parents 1585ca0 + 751547c commit 356e33c
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions library/Zend/Barcode/Renderer/Pdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,14 @@ class Pdf extends AbstractRenderer
protected $moduleSize = 0.5;

/**
* Set an image resource to draw the barcode inside
* @param resource $value
* @return \Zend\Barcode\Renderer
* @throw Exception
* Set a PDF resource to draw the barcode inside
*
* @param PdfDocument $pdf
* @param integer $page
* @return Pdf
*/
public function setResource($pdf, $page = 0)
public function setResource(PdfDocument $pdf, $page = 0)
{
if (!$pdf instanceof PdfDocument) {
throw new Exception\InvalidArgumentException(
'Invalid Zend\Pdf\PdfDocument resource provided to setResource()'
);
}

$this->resource = $pdf;
$this->page = intval($page);

Expand Down

0 comments on commit 356e33c

Please sign in to comment.