Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

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 7b34f1a + fbe6ce0 commit 803be33
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions src/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 803be33

Please sign in to comment.