<?php
declare(strict_types=1);

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

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

class SidebarLinkListDescriptionSwitchFieldEntity extends TrueFalseFieldEntity
{
  public static string $name = 'sidebar_link_list_desc_switch';
  protected string $label = 'Include Description';
  protected IntSwitchEnum $ui = IntSwitchEnum::On;
  protected string $instructions = 'Do you want to add a description below each list item?';

  protected array $initConditionalLogic = [
    [
      [ CustomContentSidebarSelectFieldEntity::class, OperatorEnum::EQUALS, SidebarComponentEnum::LinkList ],
    ]
  ];

}
