<?php

declare(strict_types=1);

namespace Apexl\Io\Logger\Dtos\HandlerConfigParams;

use Apexl\Io\Logger\Dtos\HandlerConfigParams;

class MailHandlerConfigParams extends HandlerConfigParams
{
    /** Recipient address. Without one the handler does nothing. */
    public ?string $to = null;

    public ?string $subject = null;

    /**
     * Records are buffered and sent as a single email when the process ends.
     * 0 = unlimited; beyond a positive limit the oldest records are dropped.
     */
    public int $max_records = 0;
}
