>> */ private $recent_content; /** * The constructor. * * @param WP_User $user The user. * @param string $post_type The post type. * @param string $language The language. * @param string $editor The editor. * @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 string $category_name The category name. * @param int $category_id The category ID. * @param array>> $recent_content The recent content from the suggestions response. */ public function __construct( WP_User $user, string $post_type, string $language, string $editor, string $title, string $intent, string $explanation, string $keyphrase, string $meta_description, string $category_name, int $category_id, array $recent_content ) { $this->user = $user; $this->post_type = $post_type; $this->language = $language; $this->editor = $editor; $this->title = $title; $this->intent = $intent; $this->explanation = $explanation; $this->keyphrase = $keyphrase; $this->meta_description = $meta_description; $this->category = new Category( $category_name, $category_id ); $this->recent_content = $recent_content; } /** * Returns the user. * * @return WP_User The user. */ public function get_user(): WP_User { return $this->user; } /** * Returns the post type. * * @return string The post type. */ public function get_post_type(): string { return $this->post_type; } /** * Returns the language. * * @return string The language. */ public function get_language(): string { return $this->language; } /** * Returns the editor. * * @return string The editor. */ public function get_editor(): string { return $this->editor; } /** * Returns the title. * * @return string The title. */ public function get_title(): string { return $this->title; } /** * Returns the intent. * * @return string The intent. */ public function get_intent(): string { return $this->intent; } /** * Returns the explanation. * * @return string The explanation. */ public function get_explanation(): string { return $this->explanation; } /** * Returns the keyphrase. * * @return string The keyphrase. */ public function get_keyphrase(): string { return $this->keyphrase; } /** * Returns the meta description. * * @return string The meta description. */ public function get_meta_description(): string { return $this->meta_description; } /** * Returns the category. * * @return Category The category. */ public function get_category(): Category { return $this->category; } /** * Returns the recent content from the suggestions response. * * @return array>> The recent content. */ public function get_recent_content(): array { return $this->recent_content; } }