<?php
declare(strict_types=1);

namespace WP_AUX\Entities\AuxCF\OptionsFields\PostType;

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

class PostTypeOptionsShareImageFieldEntity extends ImageFieldEntity
{
  public static string $namePattern = 'aux_archive_%s_share_image';
  public static string $nickname = 'share_image';
  protected string $label = 'Social Share Image';
  protected string $instructions = 'The preview image when sharing this archive.
    If a featured image is not provided for a post in this archive, this image will be used for
    the post\'s social sharing preview.';
  protected ImageFieldReturnFormatEnum $returnFormat = ImageFieldReturnFormatEnum::Array;
  protected ImageFieldPreviewSizeEnum $previewSize = ImageFieldPreviewSizeEnum::Medium;
  protected string $mimeTypes = FileFieldService::IMAGE_EXTENSIONS;
}
