Yoast\WP\SEO\AI_Generator\Domain
Suggestion{}
Устарела с версии 28.4. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.
Class Suggestion Represents a suggestion from the AI Generator API.
Хуков нет.
Использование
$Suggestion = new Suggestion(); // use class methods
Методы
- public __construct( string $value )
- public get_value()
- ERROR: no method name found on line `* @codeCoverageIgnore`
- ERROR: no method name found on line `/**`
Список изменений
| Устарела с | 28.4 |
Код Suggestion{} 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;
}
}