<?php
/*
 *  Copyright (c) 2025 Borlabs GmbH. All rights reserved.
 *  This file may not be redistributed in whole or significant part.
 *  Content of this file is protected by international copyright laws.
 *
 *  ----------------- Borlabs Cookie IS NOT FREE SOFTWARE -----------------
 *
 *  @copyright Borlabs GmbH, https://borlabs.io
 */

declare(strict_types=1);

namespace Borlabs\Cookie\Dto\Config;

use Borlabs\Cookie\Enum\Library\AutoUpdateIntervalEnum;
use Borlabs\Cookie\Enum\System\AutomaticUpdateEnum;

/**
 * The **PluginDto** class is used as a typed object that is passed within the system.
 *
 * The object specifies the criteria for updating the plugin.
 *
 * @see \Borlabs\Cookie\System\Config\PluginConfig
 */
final class PluginDto extends AbstractConfigDto
{
    public AutomaticUpdateEnum $automaticUpdate;

    public bool $enableDebugConsole = true;

    public bool $enableDebugLogging = false;

    public bool $enableEmailNotificationsForUpdatablePackagesWithAutoUpdateDisabled = false;

    public bool $enableEmailNotificationsForUpdatablePackagesWithAutoUpdateEnabled = true;

    public array $packageAutoUpdateEmailAddresses = [];

    public AutoUpdateIntervalEnum $packageAutoUpdateInterval;

    public string $packageAutoUpdateTime = '08:30';

    public string $packageAutoUpdateTimeSpan = '08:00-09:59';
}
