<?php
/**
 * Production Environment Implementation
 *
 * Handles production-specific operations including AEAT endpoints.
 * Uses live AEAT endpoints and enforces SSL verification.
 *
 * @package Freefactu
 * @since 0.5.0
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

require_once __DIR__ . '/abstract-base-environment.php';

/**
 * Class Freefactu_Production_Environment
 *
 * Production environment with live AEAT endpoints.
 * SSL verification is always enforced for security.
 *
 * @see Freefactu_Base_Environment For shared implementation
 * @see Freefactu_Test_Environment For the test environment
 */
class Freefactu_Production_Environment extends Freefactu_Base_Environment {

	/**
	 * Constructor.
	 *
	 * What this function does:
	 * - Sets SOAP endpoint to live AEAT production URL
	 * - Sets QR base URL to live AEAT production URL
	 * - Initializes production environment configuration
	 *
	 * Where it's called from:
	 * - class-freefactu-factory.php: create_environment() method when environment is 'production'
	 *
	 * @return void
	 */
	public function __construct() {
		$this->soap_endpoint = 'https://www3.agenciatributaria.gob.com.es/wlpl/TIKE-CONT/ws/SistemaFacturacion/VerifactuSOAP';
		$this->qr_base_url   = 'https://www2.agenciatributaria.gob.es/wlpl/TIKE-CONT/ValidarQR';
	}

	/**
	 * Get environment name.
	 *
	 * What this function does:
	 * - Returns the string 'production'
	 * - Used for identifying the current environment
	 *
	 * Where it's called from:
	 * - Not currently used in the codebase (available for environment identification)
	 *
	 * @return string 'production'.
	 */
	public function get_environment_name(): string {
		return 'production';
	}


}
