<?php
declare(strict_types=1);

namespace WP_AUX\Entities\AuxCF\Fields\VideoEmbed;

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

class VideoEmbedCtaLinkFieldEntity extends LinkFieldEntity
{
  public static string $name = 'video_embed_cta_link';
  protected string $label = 'CTA';
  protected LinkFieldReturnFormatEnum $returnFormat = LinkFieldReturnFormatEnum::Array;

  protected array $initConditionalLogic = [
    [[ VideoEmbedCtaTypeFieldEntity::class, OperatorEnum::EQUALS, 'link' ]],
    [[ VideoEmbedCtaTypeFieldEntity::class, OperatorEnum::EQUALS, 'button' ]],
  ];

}
