<?php
declare(strict_types=1);

namespace WP_AUX\Entities\AuxCF\Fields\SplitFeature;

use AuxCF\Entities\Field\LinkFieldEntity;
use AuxCF\Entities\Settings\Enum\OperatorEnum;
use AuxCF\Entities\Field\Enum\LinkFieldReturnFormatEnum;
use WP_AUX\Entities\AuxCF\Fields\CardSlab\CardSlabCardsTypeFieldEntity; 
use WP_AUX\Enum\CardsTypeOptionsEnum;

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

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