<?php
declare(strict_types=1);

namespace WP_AUX\Entities\AuxCF\Fields\FactoidCollection;

use AuxCF\Entities\Field\SelectFieldEntity;
use AuxCF\Entities\Settings\Enum\IntSwitchEnum;
use AuxCF\Entities\Settings\Enum\OperatorEnum;
use WP_AUX\Enum\IconsEnum;

class FactoidIconFieldEntity extends SelectFieldEntity
{
  public static string $name = 'factoid_icon';
  protected string $label = 'Factoid Icon';
  protected mixed $choices = IconsEnum::class;
  protected IntSwitchEnum $allowNull = IntSwitchEnum::On;
  protected IntSwitchEnum $ui = IntSwitchEnum::On;

  protected array $initConditionalLogic = [
    [[ FactoidIconSwitchFieldEntity::class, OperatorEnum::EQUALS, '1' ]],
  ];
}
