<?php

declare(strict_types=1);

namespace App\Framework\View\Table;

interface TableGenerator
{
    /**
     * Generate table from data
     */
    public function generate(object|array $data, ?TableOptions $options = null): Table;

    /**
     * Check if this generator can handle the given data structure
     */
    public function supports(object|array $data): bool;
}
