<?php
declare(strict_types=1);

namespace WP_AUX\Entities\AuxCF\Fields\SidebarComponents\Card;

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

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

  protected array $initConditionalLogic = [
    [
      [ SidebarCardsCtaTypeFieldEntity::class, OperatorEnum::EQUALS, AllCtaTypesEnum::LinkedHeading ],
    ],
    [
      [ SidebarCardsCtaTypeFieldEntity::class, OperatorEnum::EQUALS, AllCtaTypesEnum::Link ],
    ],
    [
      [ SidebarCardsCtaTypeFieldEntity::class, OperatorEnum::EQUALS, AllCtaTypesEnum::Button ],
    ],
  ];
}
