<?php
declare(strict_types=1);

namespace WP_AUX\Entities\AuxCF\Fields\Video;

use AuxCF\Entities\Field\UrlFieldEntity;
use AuxCF\Entities\Settings\Enum\OperatorEnum;

class VideoAltLinkFieldEntity extends UrlFieldEntity
{
  public static string $name = 'video_alt_url';
  protected string $label = 'Alternative URL';
  protected string $instructions = 'Another URL for the exact same video in a different format';

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