Yoast\WP\SEO\AI_Generator\Domain
Suggestion{}
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 `}`
- ERROR: no method name found on line `}`
Код Suggestion{} 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;
}
}