<?php
/**
 * Reports Loader.
 *
 * @package     EDD\Pro\CampaignTracker\Admin\Reports
 * @copyright   Copyright (c) 2025, Sandhills Development, LLC
 * @license     https://opensource.org/licenses/gpl-2.0.php GNU Public License
 * @since       3.6.3
 */

namespace EDD\Pro\CampaignTracker\Admin\Reports;

// Exit if accessed directly.
defined( 'ABSPATH' ) || exit; // @codeCoverageIgnore

use EDD\EventManagement\SubscriberInterface;

/**
 * Reports Loader Class.
 *
 * @since 3.6.3
 */
class Loader implements SubscriberInterface {

	/**
	 * Get the subscribed events.
	 *
	 * @since 3.6.3
	 * @return array
	 */
	public static function get_subscribed_events(): array {
		return array(
			'edd_reports_init' => array( 'register_reports', 50 ),
		);
	}

	/**
	 * Register the campaign tracker reports.
	 *
	 * @since 3.6.3
	 * @param \EDD\Reports\Data\Report_Registry $reports The reports registry.
	 * @return void
	 */
	public function register_reports( $reports ) {
		new CampaignTracker( $reports );
	}
}
