suggestion.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI 28.0, at src/ai-generator/domain/suggestion.php
| 1 | <?php |
| 2 | |
| 3 | namespace Yoast\WP\SEO\AI_Generator\Domain; |
| 4 | |
| 5 | /** |
| 6 | * Class Suggestion |
| 7 | * Represents a suggestion from the AI Generator API. |
| 8 | */ |
| 9 | class Suggestion { |
| 10 | |
| 11 | /** |
| 12 | * The suggestion text. |
| 13 | * |
| 14 | * @var string |
| 15 | */ |
| 16 | private $value; |
| 17 | |
| 18 | /** |
| 19 | * The constructor. |
| 20 | * |
| 21 | * @param string $value The suggestion text. |
| 22 | */ |
| 23 | public function __construct( string $value ) { |
| 24 | $this->value = $value; |
| 25 | } |
| 26 | |
| 27 | /** |
| 28 | * Returns the suggestion text. |
| 29 | * |
| 30 | * @return string |
| 31 | */ |
| 32 | public function get_value(): string { |
| 33 | return $this->value; |
| 34 | } |
| 35 | } |
| 36 |