<?php

declare(strict_types=1);

namespace PpPhp\Core\DataOps\Formats;

/**
 * Legacy Excel output: a styled HTML table saved as .xls. Excel opens it, but it
 * is NOT a spreadsheet file — XlsxReader cannot read it back and newer Excel
 * warns about the extension mismatch. Kept for projects that relied on it and as
 * a fallback where ext/zip is unavailable; prefer XlsxFormat ('xlsx').
 */
final class ExcelFormat extends HtmlTableFormat
{
    public static function id(): string { return 'excel_html'; }
    public static function label(): string { return 'Excel (legacy .xls)'; }
    public static function icon(): array { return ['bi-file-earmark-excel-fill', 'var(--pp-fmt-excel,#217346)']; }
    public static function extension(): string { return 'xls'; }
    public static function contentType(): string { return 'application/vnd.ms-excel'; }
}
