<?php
/**
 * @package WPSEO\Premium\Classes
 */

if ( class_exists( 'Yoast_Product' ) && ! class_exists( 'WPSEO_Product_Premium', false ) ) {

	/**
	 * Class WPSEO_Product_Premium
	 */
	class WPSEO_Product_Premium extends Yoast_Product {

		/**
		 * Construct the Product Premium class
		 */
		public function __construct() {
			$file = plugin_basename( WPSEO_FILE );
			$slug = dirname( $file );

			parent::__construct(
				trailingslashit( WPSEO_Premium::EDD_STORE_URL ) . 'edd-sl-api',
				WPSEO_Premium::EDD_PLUGIN_NAME,
				$slug,
				WPSEO_Premium::PLUGIN_VERSION_NAME,
				'https://yoast.com/wordpress/plugins/seo-premium/',
				'admin.php?page=wpseo_licenses#top#licenses',
				'wordpress-seo',
				WPSEO_Premium::PLUGIN_AUTHOR,
				$file
			);
		}
	}

}
