<?php
declare(strict_types=1);

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

use AuxCF\Entities\Field\EmailFieldEntity;
use AuxCF\Entities\Settings\Enum\OperatorEnum;
use WP_AUX\Entities\AuxCF\Fields\CustomContent\CustomContentSidebarSelectFieldEntity;
use WP_AUX\Enum\SidebarComponentEnum;
use WP_AUX\Services\AuxFramework\PersonnelFieldsService;

class SidebarContactCardEmailFieldEntity extends EmailFieldEntity
{
  public static string $name = 'sidebar_contact_card_email';
  protected string $label = 'Email';
  protected string $instructions = PersonnelFieldsService::EMAIL_FIELD_HELP;

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

}
