<?php
declare(strict_types=1);

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

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

class SidebarCardsCtaTypeFieldEntity extends SelectFieldEntity
{
  public static string $name = 'sidebar_cards_cta_type';
  protected string $label = 'Card CTA Type';
  protected mixed $choices = AllCtaNoButtonsTypesEnum::class;
  protected mixed $defaultValue = AllCtaNoButtonsTypesEnum::None;
  protected IntSwitchEnum $allowNull = IntSwitchEnum::Off;

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

}
