<?php
declare(strict_types=1);

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

use AuxCF\Entities\Field\LinkFieldEntity;
use AuxCF\Entities\Settings\Enum\OperatorEnum;
use AuxCF\Entities\Field\Enum\LinkFieldReturnFormatEnum;
use WP_AUX\Entities\AuxCF\Fields\CustomContent\CustomContentSidebarSelectFieldEntity;
use WP_AUX\Enum\SidebarComponentEnum;

class SidebarLinkedCardLinkFieldEntity extends LinkFieldEntity
{
  public static string $name = 'sidebar_linked_card_link';
  protected string $label = 'Linked Card Destination';
  protected LinkFieldReturnFormatEnum $returnFormat = LinkFieldReturnFormatEnum::Array;

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

}
