<?php
declare(strict_types=1);

namespace WP_AUX\Entities\AuxCF\Fields\MediaFeature;

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

class MediaFeatureVideoLinkFieldEntity extends LinkFieldEntity
{
  public static string $name = 'media_feature_video_link';
  protected string $label = 'Embedded Video URL';
  protected LinkFieldReturnFormatEnum $returnFormat = LinkFieldReturnFormatEnum::Array;

  protected array $initConditionalLogic = [
    [[ MediaFeatureVideoSwitchFieldEntity::class, OperatorEnum::EQUALS, 'external' ]],
  ];
}
