PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / trunk
Yoast SEO – Advanced SEO with real-time guidance and built-in AI vtrunk
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
← All changes | src/ai/content-planner/application/content-outline-command.php +31 -12 27.8 → trunk View file →
@@ -81,21 +81,29 @@
81 81 */
82 82 private $category;
83 83
84 84 /**
85 + * The recent content from the suggestions response.
86 + *
87 + * @var array<array<string, string|bool|array<string, int>>>
88 + */
89 + private $recent_content;
90 +
91 + /**
85 92 * The constructor.
86 93 *
87 - * @param WP_User $user The user.
88 - * @param string $post_type The post type.
89 - * @param string $language The language.
90 - * @param string $editor The editor.
91 - * @param string $title The title.
92 - * @param string $intent The intent.
93 - * @param string $explanation The explanation.
94 - * @param string $keyphrase The keyphrase.
95 - * @param string $meta_description The meta description.
96 - * @param string $category_name The category name.
97 - * @param int $category_id The category ID.
94 + * @param WP_User $user The user.
95 + * @param string $post_type The post type.
96 + * @param string $language The language.
97 + * @param string $editor The editor.
98 + * @param string $title The title.
99 + * @param string $intent The intent.
100 + * @param string $explanation The explanation.
101 + * @param string $keyphrase The keyphrase.
102 + * @param string $meta_description The meta description.
103 + * @param string $category_name The category name.
104 + * @param int $category_id The category ID.
105 + * @param array<array<string, string|bool|array<string, int>>> $recent_content The recent content from the suggestions response.
98 106 */
99 107 public function __construct(
100 108 WP_User $user,
101 109 string $post_type,
@@ -106,9 +114,10 @@
106 114 string $explanation,
107 115 string $keyphrase,
108 116 string $meta_description,
109 117 string $category_name,
110 - int $category_id
118 + int $category_id,
119 + array $recent_content
111 120 ) {
112 121 $this->user = $user;
113 122 $this->post_type = $post_type;
114 123 $this->language = $language;
@@ -118,8 +127,9 @@
118 127 $this->explanation = $explanation;
119 128 $this->keyphrase = $keyphrase;
120 129 $this->meta_description = $meta_description;
121 130 $this->category = new Category( $category_name, $category_id );
131 + $this->recent_content = $recent_content;
122 132 }
123 133
124 134 /**
125 135 * Returns the user.
@@ -208,6 +218,15 @@
208 218 * @return Category The category.
209 219 */
210 220 public function get_category(): Category {
211 221 return $this->category;
222 + }
223 +
224 + /**
225 + * Returns the recent content from the suggestions response.
226 + *
227 + * @return array<array<string, string|bool|array<string, int>>> The recent content.
228 + */
229 + public function get_recent_content(): array {
230 + return $this->recent_content;
212 231 }
213 232 }