<?php
declare(strict_types=1);

namespace WP_AUX\Entities\AuxCF\Fields\CardSlab;

use AuxCF\Entities\Field\LinkFieldEntity;
use AuxCF\Entities\Field\Enum\LinkFieldReturnFormatEnum;
use WP_AUX\Enum\CardsTypeOptionsEnum;
use WP_AUX\Enum\CtaTypes\SingleCtaTypesEnum;
use AuxCF\Entities\Settings\Enum\OperatorEnum;

class CardSlabCtaFieldEntity extends LinkFieldEntity
{
  public static string $name = 'card_slab_cta_link'; 
  protected string $label = 'Card CTA';
  protected LinkFieldReturnFormatEnum $returnFormat = LinkFieldReturnFormatEnum::Array;

  protected array $initConditionalLogic = [
    [[ CardSlabCardsTypeFieldEntity::class, OperatorEnum::EQUALS, CardsTypeOptionsEnum::LinkedCards ]],
    [[ CardSlabCtaTypeFieldEntity::class, OperatorEnum::EQUALS, SingleCtaTypesEnum::Link ]],
    [[ CardSlabCtaTypeFieldEntity::class, OperatorEnum::EQUALS, SingleCtaTypesEnum::Button ]],
    [[ CardSlabCtaTypeFieldEntity::class, OperatorEnum::EQUALS, SingleCtaTypesEnum::LinkedHeading ]],
  ];
}
