<?php
declare(strict_types=1);

namespace WP_AUX\Entities\AuxCF\Fields\CardSlab;

use AuxCF\Entities\Field\SelectFieldEntity;
use AuxCF\Entities\Settings\Enum\IntSwitchEnum;
use AuxCF\Entities\Settings\Enum\OperatorEnum;
use WP_AUX\Enum\CtaTypes\SingleCtaTypesEnum;
use WP_AUX\Enum\CardsTypeOptionsEnum;

class CardSlabCtaTypeFieldEntity extends SelectFieldEntity
{
  public static string $name = 'card_slab_cta_type';
  protected string $label = 'Cards CTA Type';
  protected string $instructions = 'How do you want each card\'s call to action link to appear, if at all?';
  protected mixed $choices = SingleCtaTypesEnum::class;
  protected mixed $defaultValue = SingleCtaTypesEnum::None;
  protected IntSwitchEnum $allowNull = IntSwitchEnum::Off;
  
  protected array $initConditionalLogic = [
    [[ CardSlabCardsTypeFieldEntity::class, OperatorEnum::EQUALS, CardsTypeOptionsEnum::FeaturedCards ]],
  ];

}
