| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class ExcelExportService extends ExportService |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Provide a view to build the PDF from. |
||
| 14 | * |
||
| 15 | * @param View $view |
||
| 16 | * @param string|null $uploadPath |
||
| 17 | * @return ExcelRenderer |
||
| 18 | */ |
||
| 19 | public static function fromView(View $view, string $uploadPath = null): ExcelRenderer |
||
| 20 | { |
||
| 21 | return new ExcelRenderer($view, $uploadPath); |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Provide a view to build the PDF from. |
||
| 26 | * |
||
| 27 | * @param AbstractViewModel $viewModel |
||
| 28 | * @param string|null $uploadPath |
||
| 29 | * @return ExcelRenderer |
||
| 30 | */ |
||
| 31 | public static function fromViewModel(AbstractViewModel $viewModel, string $uploadPath = null): ExcelRenderer |
||
| 34 | } |
||
| 35 | } |
||
| 36 |