| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | abstract class Driver |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Create the PDF and return it in string format. |
||
| 13 | * |
||
| 14 | * @param Filesystem $filesystem Filesystem used for storing the PDF |
||
| 15 | * @param PdfToGenerateDTO $dto Data needed to generate the PDF file |
||
| 16 | * @return string Filepath to the generated PDF file |
||
| 17 | * @throws UnsupportedOutputTypeException |
||
| 18 | */ |
||
| 19 | abstract public function storeOnFilesystem(Filesystem $filesystem, PdfToGenerateDTO $dto): string; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Get the full path to a file based on a path and a filename; |
||
| 23 | * |
||
| 24 | * @param string $path |
||
| 25 | * @param string $filename |
||
| 26 | * @return string |
||
| 27 | */ |
||
| 28 | 4 | public function getFullPath(string $path, string $filename): string |
|
| 37 |