<?php
/**
 * Its used for dependacy check
 *
 * @since: 21/09/2021
 * @author: Sarwar Hasan
 * @version 1.0.0
 * @package Elite_Notification_Lite\Libs
 */

namespace Elite_Notification_Lite\Libs;

use Appsbd_Lite\V4\libs\WP_Loader;

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

if ( ! class_exists( __NAMESPACE__ . '\Elite_Notification_Loader' ) ) {
	/**
	 * Class Elite_Notification_Loader
	 *
	 * @package Elite_Notification_Lite\Libs
	 */
	class Elite_Notification_Loader extends WP_Loader {

		/**
		 * The set details is generated by appsbd
		 *
		 * @return mixed|void
		 */
		public function set_details() {
			$this->plugin_file     = 'elite-notification/elite-notification.php';
			$this->pro_plugin_file = 'elite-notification-pro/elite-notification-pro.php';
		}

		/**
		 * The load before ready is generated by appsbd
		 *
		 * @param bool $result Its a result.
		 *
		 * @return bool
		 */
		public function load_before_ready( $result ) {

			return parent::load_before_ready( $result );
		}
	}
}
