# wordpress-seo/28.0/src/ai/content-planner/domain/content-suggestion.php

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

- Page: https://pluginprobe.com/plugins/wordpress-seo/28.0/code/src/ai/content-planner/domain/content-suggestion.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/28.0/raw/src/ai/content-planner/domain/content-suggestion.php
- Modified: 2026-04-28T14:11:22+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.0/code/src/ai/content-planner/domain/content-suggestion.php#L10-L20`.

```php
<?php
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace Yoast\WP\SEO\AI\Content_Planner\Domain;

/**
 * Value object for a content suggestion.
 */
class Content_Suggestion {

	/**
	 * The title.
	 *
	 * @var string
	 */
	private $title;

	/**
	 * The intent.
	 *
	 * @var string
	 */
	private $intent;

	/**
	 * The explanation.
	 *
	 * @var string
	 */
	private $explanation;

	/**
	 * The keyphrase.
	 *
	 * @var string
	 */
	private $keyphrase;

	/**
	 * The meta description.
	 *
	 * @var string
	 */
	private $meta_description;

	/**
	 * The category.
	 *
	 * @var Category
	 */
	private $category;

	/**
	 * The constructor.
	 *
	 * @param string   $title            The title.
	 * @param string   $intent           The intent.
	 * @param string   $explanation      The explanation.
	 * @param string   $keyphrase        The keyphrase.
	 * @param string   $meta_description The meta description.
	 * @param Category $category         The category. Use a Category with name "" and id -1 to represent "no category".
	 */
	public function __construct(
		string $title,
		string $intent,
		string $explanation,
		string $keyphrase,
		string $meta_description,
		Category $category
	) {
		$this->title            = $title;
		$this->intent           = $intent;
		$this->explanation      = $explanation;
		$this->keyphrase        = $keyphrase;
		$this->meta_description = $meta_description;
		$this->category         = $category;
	}

	/**
	 * Returns this object in array format.
	 *
	 * @return array<string, string|array<string, int>> The content suggestion as an array.
	 */
	public function to_array(): array {
		return [
			'title'            => $this->title,
			'intent'           => $this->intent,
			'explanation'      => $this->explanation,
			'keyphrase'        => $this->keyphrase,
			'meta_description' => $this->meta_description,
			'category'         => $this->category->to_array(),
		];
	}
}

```
