| Total Complexity | 3 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | class PdfException extends Exception |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | private $pdfError; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | private $pdfOutput; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Constructor. |
||
| 35 | * |
||
| 36 | * @param string $message |
||
| 37 | * @param int $code |
||
| 38 | * @param Exception $previous |
||
| 39 | * @param string $pdfError |
||
| 40 | * @param string $pdfOutput |
||
| 41 | */ |
||
| 42 | 22 | public function __construct($message, $code = 0, Exception $previous = null, $pdfError = null, $pdfOutput = null) |
|
| 48 | 22 | } |
|
| 49 | |||
| 50 | /** |
||
| 51 | * Returns the concrete error message of the underlying PDF library. |
||
| 52 | */ |
||
| 53 | 4 | public function getPdfError() |
|
| 56 | } |
||
| 57 | |||
| 58 | /** |
||
| 59 | * Returns the concrete output of the underlying PDF library. |
||
| 60 | */ |
||
| 61 | 4 | public function getPdfOutput() |
|
| 66 |