Yoast\WP\SEO\AI_Generator\Domain

Suggestion{}Yoast 1.0

Class Suggestion Represents a suggestion from the AI Generator API.

Хуков нет.

Использование

$Suggestion = new Suggestion();
// use class methods

Методы

  1. public __construct( string $value )
  2. public get_value()
  3. ERROR: no method name found on line `}`
  4. ERROR: no method name found on line `}`

Код Suggestion{} Yoast 27.7

class Suggestion {

	/**
	 * The suggestion text.
	 *
	 * @var string
	 */
	private $value;

	/**
	 * The constructor.
	 *
	 * @param string $value The suggestion text.
	 */
	public function __construct( string $value ) {
		$this->value = $value;
	}

	/**
	 * Returns the suggestion text.
	 *
	 * @return string
	 */
	public function get_value(): string {
		return $this->value;
	}
}