<?php
/**
 * Menu Controller
 *
 * @category   WordPress_Plugin
 * @package    Common
 * @subpackage Controllers\Admin
 * @author     miniOrange <info@miniorange.com>
 * @license    MIT/Expat
 * @link       https://plugins.miniorange.com/woocommerce-api-product-sync-with-woocommerce-rest-apis
 */

namespace MOWCPS\Common\Controllers\Admin;

use MOWCPS\Common\Handlers\Menu\Menu_Handler;

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

/**
 * Class Menu_Controller
 *
 * Coordinates menu-related functionality between hooks and handlers
 */
class Menu_Controller {

	/**
	 * Handle admin menu setup
	 *
	 * @return void
	 */
	public static function handle_admin_menu() {
		Menu_Handler::register_menu();
		Menu_Handler::enqueue_assets();
	}

	/**
	 * Handle development mode setup
	 *
	 * @return void
	 */
	public static function handle_dev_mode() {
		if ( Menu_Handler::should_enable_dev_mode() ) {
			Menu_Handler::initialize_dev_mode();
		}
	}
}
