# wordpress-seo/28.1/src/ai-generator/domain/suggestion.php

Yoast SEO – Advanced SEO with real-time guidance and built-in AI, version 28.1. 36 lines.

- Page: https://pluginprobe.com/plugins/wordpress-seo/28.1/code/src/ai-generator/domain/suggestion.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/28.1/raw/src/ai-generator/domain/suggestion.php
- Modified: 2025-07-15T13:36:10+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wordpress-seo/28.1/code/src/ai-generator/domain/suggestion.php#L10-L20`.

```php
<?php

namespace Yoast\WP\SEO\AI_Generator\Domain;

/**
 * Class Suggestion
 * Represents a suggestion from the AI Generator API.
 */
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;
	}
}

```
