File "seo-scores-route.php"

Full Path: /home/hathazar/public_html/wp-content/plugins/wordpress-seo/src/dashboard/user-interface/scores/seo-scores-route.php
File size: 783 bytes
MIME-type: --
Charset: utf-8

<?php
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace Yoast\WP\SEO\Dashboard\User_Interface\Scores;

use Yoast\WP\SEO\Dashboard\Application\Score_Results\SEO_Score_Results\SEO_Score_Results_Repository;

/**
 * Registers a route to get SEO scores.
 */
class SEO_Scores_Route extends Abstract_Scores_Route {

	/**
	 * The prefix of the route.
	 *
	 * @var string
	 */
	public const ROUTE_PREFIX = '/seo_scores';

	/**
	 * Constructs the class.
	 *
	 * @param SEO_Score_Results_Repository $seo_score_results_repository The SEO score results repository.
	 */
	public function __construct(
		SEO_Score_Results_Repository $seo_score_results_repository
	) {
		$this->score_results_repository = $seo_score_results_repository;
	}
}