<?php
declare(strict_types=1);

namespace WP_AUX\Entities\AuxCF\Fields\ContactCardCollection;

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

class ContactCardImageFieldEntity extends ImageFieldEntity
{
  public static string $name = 'contact_card_image';
  protected string $label = 'Contact Card Image';
  protected ImageFieldReturnFormatEnum $returnFormat = ImageFieldReturnFormatEnum::Array;
  protected ImageFieldPreviewSizeEnum $previewSize = ImageFieldPreviewSizeEnum::Medium;

  protected array $initConditionalLogic = [
    [
      [ ContactCardCollectionImageSwitchFieldEntity::class, OperatorEnum::EQUALS, '1' ],
    ]
  ];

}
