<?php
declare(strict_types=1);

namespace WP_AUX\Entities\AuxCF\Fields\SidebarComponents\Alert;

use AuxCF\Entities\Field\SelectFieldEntity;
use AuxCF\Entities\Settings\Enum\IntSwitchEnum;
use AuxCF\Entities\Settings\Enum\OperatorEnum;
use WP_AUX\Enum\AlertTypeEnum;
use WP_AUX\Entities\AuxCF\Fields\CustomContent\CustomContentSidebarSelectFieldEntity;
use WP_AUX\Enum\SidebarComponentEnum;

class SidebarAlertTypeSelectFieldEntity extends SelectFieldEntity
{
  public static string $name = 'sidebar_alert_type_select';
  protected string $label = 'Alert Type';
  protected mixed $choices = AlertTypeEnum::class;
  protected IntSwitchEnum $allowNull = IntSwitchEnum::Off;
  protected mixed $defaultValue = AlertTypeEnum::Information;
 
  protected array $initConditionalLogic = [
    [
      [ CustomContentSidebarSelectFieldEntity::class, OperatorEnum::EQUALS, SidebarComponentEnum::Alert ],
    ]
  ];

}
