<?php
declare(strict_types=1);

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

use AuxCF\Entities\Field\Enum\ImageFieldPreviewSizeEnum;
use AuxCF\Entities\Field\Enum\ImageFieldReturnFormatEnum;
use AuxCF\Entities\Field\ImageFieldEntity;
use AuxCF\Entities\Settings\Enum\OperatorEnum;
use AuxCF\Services\FileFieldService;

class CaptionedMediaImageFieldEntity extends ImageFieldEntity
{
  public static string $name = 'captioned_media_image';
  protected string $label = 'Image';
  protected ImageFieldReturnFormatEnum $returnFormat = ImageFieldReturnFormatEnum::Array;
  protected ImageFieldPreviewSizeEnum $previewSize = ImageFieldPreviewSizeEnum::Medium;
  protected string $mimeTypes = FileFieldService::IMAGE_EXTENSIONS;

  protected array $initConditionalLogic = [
    [
      [ CaptionedMediaTypeFieldEntity::class, OperatorEnum::EQUALS, 'image' ],
    ]
  ];

}
