<?php
declare(strict_types=1);

namespace WP_AUX\Entities\AuxCF\Fields\Card;

use AuxCF\Entities\Field\Enum\LinkFieldReturnFormatEnum;
use AuxCF\Entities\Field\LinkFieldEntity;
use AuxCF\Entities\Settings\Enum\OperatorEnum;
use WP_AUX\Entities\AuxCF\Fields\Section\SectionCardsLayoutSwitchFieldEntity;
use WP_AUX\Enum\CtaTypes\AllCtaNoButtonsTypesEnum;

class LinkedCardCtaFieldEntity extends LinkFieldEntity
{
  public static string $name = 'linked_card_cta';
  protected string $label = 'Linked Card CTA';
  protected string $instructions = 'Select link destination and link text for the CTA.';
  protected LinkFieldReturnFormatEnum $returnFormat = LinkFieldReturnFormatEnum::Array;

  protected array $initConditionalLogic = [
    [
      [ SectionCardsLayoutSwitchFieldEntity::class, OperatorEnum::EQUALS, 'linked' ],
    ],
  ];
}
