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 ); } /** * 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; } }