base_construct( $parent_task, $content_item_data ); $this->meta_description_data = $content_item_data; } /** * Returns whether this task is completed. * * A child task is completed when the post has a custom meta description. * * @return bool Whether this task is completed. */ public function get_is_completed(): bool { return $this->meta_description_data->has_description(); } /** * Returns the task's priority. * * @return string */ public function get_priority(): string { return 'medium'; } /** * Returns the task's call to action entry. * * @return Call_To_Action_Entry|null */ public function get_call_to_action(): ?Call_To_Action_Entry { return new Call_To_Action_Entry( \__( 'Open editor', 'wordpress-seo' ), 'link', $this->get_link(), ); } }