<?php
namespace Gestoreasy\Core\Fiscal\Sped;

use PDO;

interface BlockInterface {
    /**
     * Generate record lines (without EOL) for this block for the given period.
     * Return array of strings like "|0000|...|".
     */
    public function generate(PDO $pdo, Period $period, array $options = []): array;

    /**
     * Return block identifier (e.g., '0', 'C', 'E', '9').
     */
    public function id(): string;
}