<?php
declare(strict_types=1);

namespace WP_AUX\Entities\AuxCF\OptionsFields\Global;

use AuxCF\Entities\Field\TrueFalseFieldEntity;
use AuxCF\Entities\Settings\Enum\IntSwitchEnum;

class GlobalAuxVersionNextSwitchFieldEntity extends TrueFalseFieldEntity
{
  public static string $name = 'aux_version_next';
  protected string $label = 'Use next AUX version for logged-in administrators?';
  protected string $instructions = 'Enable this option to see how your site will work with the next version of AUX.';
  protected IntSwitchEnum $ui = IntSwitchEnum::On;
  protected mixed $defaultValue = IntSwitchEnum::On;

  protected function init(): void
  {
    $this->instructions = 'You are currently using version <strong>' . \WP_AUX::AUX_VERSION . '</strong> of the AUX framework. ' . $this->instructions;
  }
}
