<?php
declare(strict_types=1);

namespace WP_AUX\Entities\AuxCF\Fields\FactoidCollection;

use AuxCF\Entities\Field\TrueFalseFieldEntity;
use AuxCF\Entities\Settings\Enum\IntSwitchEnum;
use AuxCF\Entities\Settings\Enum\OperatorEnum;

class FactoidIconSwitchFieldEntity extends TrueFalseFieldEntity
{
  public static string $name = 'factoid_icon_switch';
  protected string $label = 'Show Factoid Icon';
  protected IntSwitchEnum $ui = IntSwitchEnum::On;
  protected string $instructions = 'Do you want to display an icon for all factoids?';

  protected array $initConditionalLogic = [
    [[ FactoidLayoutSwitchFieldEntity::class, OperatorEnum::EQUALS, 'standard' ]],
  ];
}
