<?php
declare(strict_types=1);

namespace WP_AUX\Entities\AuxCF\OptionsFields\Global;

use AuxCF\Entities\Field\Enum\ChoicesFieldReturnFormatEnum;
use AuxCF\Entities\Field\RadioFieldEntity;

/**
 * Tracking method selection field in the AUX Site Settings page.
 * Allows users to choose between Google Analytics and Google Tag Manager.
 * This field controls the conditional display of the analytics and GTM fields.
 *
 * @since 1.0.0
 */
class TrackingMethodFieldEntity extends RadioFieldEntity
{
  public static string $name = 'aux_tracking_method';
  protected string $label = 'Tracking Method';
  protected string $instructions = 'Select the analytics tracking method you want to use for your website.
                                    Google Analytics is the default and is recommended for most websites.';
  protected mixed $choices = [
    'google_analytics' => 'Google Analytics',
    'google_tag_manager' => 'Google Tag Manager'
  ];
  protected mixed $defaultValue = 'google_analytics';
  protected ChoicesFieldReturnFormatEnum $returnFormat = ChoicesFieldReturnFormatEnum::Value;
}
