<?php
declare(strict_types=1);

namespace WP_AUX\Entities\AuxCF\Fields\FeaturedCard;

use AuxCF\Entities\Field\SelectFieldEntity;
use WP_AUX\Enum\CtaTypes\SingleCtaTypesEnum;
use AuxCF\Entities\Settings\Enum\OperatorEnum;
use WP_AUX\Entities\AuxCF\Fields\CardSlab\CardSlabCardsTypeFieldEntity; 
use WP_AUX\Enum\CardsTypeOptionsEnum;

class FeaturedCardCtaTypeFieldEntity extends SelectFieldEntity
{
  public static string $name = 'featured_card_cta_type';
  protected string $label = 'Featured Card CTA Type';
  protected string $instructions = 'How do you want the featured card\'s call to action link to appear, if at all?';
  protected mixed $choices = SingleCtaTypesEnum::class;

  protected array $initConditionalLogic = [
    [
      [ CardSlabCardsTypeFieldEntity::class, OperatorEnum::EQUALS, CardsTypeOptionsEnum::FeaturedCards ]
    ]
  ];

}
