<?php
declare(strict_types=1);

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

use AuxCF\Entities\Field\Enum\ImageFieldPreviewSizeEnum;
use AuxCF\Entities\Field\Enum\ImageFieldReturnFormatEnum;
use AuxCF\Entities\Field\ImageFieldEntity;
use AuxCF\Entities\Settings\Enum\OperatorEnum;
use WP_AUX\Entities\AuxCF\Fields\CustomContent\CustomContentSidebarSelectFieldEntity;
use WP_AUX\Enum\SidebarComponentEnum;

class SidebarTestimonialImageFieldEntity extends ImageFieldEntity
{
  public static string $name = 'sidebar_testimonial_image';
  protected string $label = 'Testimonial Image (Optional)';
  protected ImageFieldReturnFormatEnum $returnFormat = ImageFieldReturnFormatEnum::Array;
  protected ImageFieldPreviewSizeEnum $previewSize = ImageFieldPreviewSizeEnum::Medium;

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

}
