Yoast\WP\SEO\AI_Generator\Domain

Suggestion{} │ Yoast 1.0

Устарела с версии 28.4. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.

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 `* @codeCoverageIgnore`
  4. ERROR: no method name found on line `/**`

Список изменений

Устарела с 28.4

Код Suggestion{} Yoast 28.7

class Suggestion {

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

	/**
	 * The constructor.
	 *
	 * @deprecated 28.4
	 * @codeCoverageIgnore
	 *
	 * @param string $value The suggestion text.
	 */
	public function __construct( string $value ) {
		\_deprecated_function( __METHOD__, 'Yoast SEO 28.4' );
		$this->value = $value;
	}

	/**
	 * Returns the suggestion text.
	 *
	 * @deprecated 28.4
	 * @codeCoverageIgnore
	 *
	 * @return string
	 */
	public function get_value(): string {
		\_deprecated_function( __METHOD__, 'Yoast SEO 28.4' );
		return $this->value;
	}
}