403Webshell
Server IP : 37.27.51.148  /  Your IP : 37.27.51.148
Web Server : nginx/1.14.1
System : Linux libra 4.18.0-553.51.1.el8_10.x86_64 #1 SMP Wed Apr 30 20:24:04 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.3.31
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/html/wp-content/plugins/wordpress-seo/src/abilities/domain/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/plugins/wordpress-seo/src/abilities/domain/score-result.php
<?php

// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace Yoast\WP\SEO\Abilities\Domain;

/**
 * Immutable value object representing a score result.
 */
class Score_Result {

	/**
	 * The post title.
	 *
	 * @var string
	 */
	private $title;

	/**
	 * The score slug (na, bad, ok, good).
	 *
	 * @var string
	 */
	private $score;

	/**
	 * The translated human-readable label.
	 *
	 * @var string
	 */
	private $label;

	/**
	 * Constructor.
	 *
	 * @param string $title The post title.
	 * @param string $score The score slug.
	 * @param string $label The translated human-readable label.
	 */
	public function __construct( string $title, string $score, string $label ) {
		$this->title = $title;
		$this->score = $score;
		$this->label = $label;
	}

	/**
	 * Serializes the score result to an array for ability output.
	 *
	 * @return array<string, string> The serialized score result.
	 */
	public function to_array(): array {
		return [
			'title' => $this->title,
			'score' => $this->score,
			'label' => $this->label,
		];
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit