Skip to content

Commit

Permalink
add method IRenderer::getSource
Browse files Browse the repository at this point in the history
  • Loading branch information
MartkCz committed Jul 8, 2019
1 parent 9735036 commit 9a66a7b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Renderers/IRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,9 @@ public function cell(float $x, float $y, float $width, ?float $height, ?string $

public function output(): string;

/**
* @return mixed
*/
public function getSource();

}
5 changes: 5 additions & 0 deletions src/Renderers/PDFRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,9 @@ protected function restoreSettings(Settings $settings, string $name): void
}
}

public function getSource()
{
return $this->pdf;
}

}

0 comments on commit 9a66a7b

Please sign in to comment.