File "bad-seo-score-group.php"

Full Path: /home/elegucvf/public_html/src/dashboard/domain/score-groups/seo-score-groups/bad-seo-score-group.php
File size: 1.29 KB
MIME-type: text/x-php
Charset: utf-8

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

/**
 * This class describes a bad SEO score group.
 */
class Bad_SEO_Score_Group extends Abstract_SEO_Score_Group {

	/**
	 * Gets the name of the SEO score group.
	 *
	 * @return string The name of the SEO score group.
	 */
	public function get_name(): string {
		return 'bad';
	}

	/**
	 * Gets the value of the SEO score group that is used when filtering on the posts page.
	 *
	 * @return string The name of the SEO score group that is used when filtering on the posts page.
	 */
	public function get_filter_value(): string {
		return 'bad';
	}

	/**
	 * Gets the position of the SEO score group.
	 *
	 * @return int The position of the SEO score group.
	 */
	public function get_position(): int {
		return 2;
	}

	/**
	 * Gets the minimum score of the SEO score group.
	 *
	 * @return int The minimum score of the SEO score group.
	 */
	public function get_min_score(): ?int {
		return 1;
	}

	/**
	 * Gets the maximum score of the SEO score group.
	 *
	 * @return int The maximum score of the SEO score group.
	 */
	public function get_max_score(): ?int {
		return 40;
	}
}