parent_task = $parent_task; $this->content_item_data = $content_item_data; } /** * Returns the task ID. * * @return string */ public function get_id(): string { return $this->parent_task->get_id() . '-' . $this->content_item_data->get_content_id(); } /** * Returns the task's link. * * @return string|null */ public function get_link(): ?string { return \get_edit_post_link( $this->content_item_data->get_content_id(), '&' ); } /** * Returns the task's copy set. * * @return Copy_Set */ public function get_copy_set(): Copy_Set { return new Copy_Set( \html_entity_decode( $this->content_item_data->get_title(), \ENT_QUOTES, 'UTF-8' ), $this->parent_task->get_copy_set()->get_about(), ); } }