<?php
declare(strict_types=1);

namespace WP_AUX\Entities\AuxCF\Fields\Callout;

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


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

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