<?php
declare(strict_types=1);

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

use AuxCF\Entities\Field\LinkFieldEntity;
use AuxCF\Entities\Field\Enum\LinkFieldReturnFormatEnum;
use AuxCF\Entities\Settings\Enum\OperatorEnum;
use WP_AUX\Entities\AuxCF\Fields\CustomContent\CustomContentSidebarSelectFieldEntity;
use WP_AUX\Enum\SidebarComponentEnum;

class SidebarCaptionedMediaVideoLinkFieldEntity extends LinkFieldEntity
{
  public static string $name = 'sidebar_captioned_media_video_link';
  protected string $label = 'Video Link';
  protected LinkFieldReturnFormatEnum $returnFormat = LinkFieldReturnFormatEnum::Array;

  protected array $initConditionalLogic = [
    [
      [ SidebarCaptionedMediaTypeFieldEntity::class, OperatorEnum::EQUALS, 'video' ],
    ]
  ];
}
