| 1: | <?php |
| 2: | |
| 3: | namespace LaravelUi5\Core\Ui5\Contracts; |
| 4: | |
| 5: | use Maatwebsite\Excel\Concerns\FromGenerator; |
| 6: | use Maatwebsite\Excel\Concerns\WithHeadings; |
| 7: | use Maatwebsite\Excel\Concerns\WithMapping; |
| 8: | |
| 9: | /** |
| 10: | * Marker Interface for Reports that also generate Excel Downloads. |
| 11: | */ |
| 12: | interface ExportInterface extends FromGenerator, WithHeadings, WithMapping |
| 13: | { |
| 14: | /** |
| 15: | * Optional: Returns the name of the exported Excel/CSV file. |
| 16: | * |
| 17: | * Example: 'Jahresabgrenzung_2025.xlsx' |
| 18: | * |
| 19: | * @return string|null the name of the PDF when downloaded by clients |
| 20: | */ |
| 21: | public function getExportName(): ?string; |
| 22: | |
| 23: | } |
| 24: |