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

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

- Page: https://pluginprobe.com/plugins/wordpress-seo/27.7/code/src/ai/generator/domain/suggestion.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/27.7/raw/src/ai/generator/domain/suggestion.php
- Modified: 2026-03-17T12:01:04+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/27.7/code/src/ai/generator/domain/suggestion.php#L10-L20`.

```php
<?php

// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.

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;
	}
}

```
