<?php
declare(strict_types=1);

namespace WP_AUX\Entities\AuxCF\Fields\FeaturedCard;

use AuxCF\Entities\Field\LinkFieldEntity;
use AuxCF\Entities\Field\Enum\LinkFieldReturnFormatEnum;
use AuxCF\Entities\Settings\Enum\OperatorEnum;

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

  protected array $initConditionalLogic = [
    [[ FeaturedCardCtaTypeFieldEntity::class, OperatorEnum::NOT_EQUALS, 'none' ]],
  ];

}
