<?php

namespace RadiusTheme\RadiusBooking\Facades;

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

use RadiusTheme\RadiusBooking\ExportImport\ExportBuilder;

/**
 * Class Export
 *
 * Facade for export operations.
 *
 * Usage:
 *   Export::module('appointment')->export();
 *   Export::modules(['category', 'service'])->export();
 *
 * @method static ExportBuilder module(string $module)
 * @method static ExportBuilder modules(array $modules)
 *
 * @package RadiusTheme\RadiusBooking\Facades
 */
class Export {

	/**
	 * Handle static method calls by delegating to ExportBuilder.
	 *
	 * @param string $method Method name.
	 * @param array  $args   Method arguments.
	 *
	 * @return ExportBuilder
	 */
	public static function __callStatic( string $method, array $args ) {
		$builder = new ExportBuilder();
		return $builder->$method( ...$args );
	}
}
