suggestions = $suggestions; $this->recent_content = $recent_content; } /** * Returns the content suggestions. * * @return Content_Suggestion_List The content suggestions. */ public function get_suggestions(): Content_Suggestion_List { return $this->suggestions; } /** * Returns the recent content. * * @return Post_List The recent content. */ public function get_recent_content(): Post_List { return $this->recent_content; } /** * Returns this object in array format. * * Uses the minimal Post representation so editor-only metadata * (focus keyphrase, cornerstone flag, schema type) never crosses * the REST boundary into the browser. * * @return array>> The response as an array. */ public function to_array(): array { $result = $this->suggestions->to_array(); $result['recent_content'] = $this->recent_content->to_minimal_array(); return $result; } }