<?php
declare(strict_types=1);

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

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

class SidebarCaptionedMediaCaptionFieldEntity extends TextareaFieldEntity
{
  public static string $name = 'sidebar_captioned_media_caption';
  protected string $label = 'Media Caption';
  protected string $instructions = 'Captions give context to a piece of content. Information in a caption is available to sighted users and screen readers.';

  protected array $initConditionalLogic = [
    [
      [ CustomContentSidebarSelectFieldEntity::class, OperatorEnum::EQUALS, SidebarComponentEnum::CaptionedMedia ],
    ]
  ];
}
