<?php
declare(strict_types=1);

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

use AuxCF\Entities\Field\TextFieldEntity;
use AuxCF\Entities\Settings\Enum\OperatorEnum;
use WP_AUX\Entities\AuxCF\Fields\CustomContent\CustomContentSidebarSelectFieldEntity;
use WP_AUX\Enum\SidebarComponentEnum;
use WP_AUX\Services\AuxFramework\MediaFieldsService;

class SidebarCaptionedMediaCreditFieldEntity extends TextFieldEntity
{
  public static string $name = 'sidebar_captioned_media_credit';
  protected string $label = 'Media Credit';
  protected string $instructions = MediaFieldsService::ORG_FIELD_HELP;

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

}
