<?php
declare(strict_types=1);

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

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 SidebarQaPairLabelsSwitchFieldEntity extends TrueFalseFieldEntity
{
  public static string $name = 'sidebar_qa_pair_labels';
  protected string $label = 'Show Labels';
  protected string $instructions = 'Choose to optionally display "question" and "answer" labels.';
  protected IntSwitchEnum $ui = IntSwitchEnum::On;

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

}
