*/ public function present( Link $link ): array { $is_moved = Verdict::Moved === $link->verdict; return array( 'id' => $link->id, 'url' => $link->url, 'host' => $link->host, 'kind' => $link->kind->value, 'internal' => $link->internal, 'verdict' => $link->verdict->value, 'reason' => $link->reason?->value, 'ignored' => Outcome::Ignored === $link->outcome, 'http_code' => $link->http_code, 'final_url' => $is_moved ? $link->final_url : null, 'streak' => $link->streak, 'since' => $this->iso_time->from_timestamp( $link->since ), 'checked_at' => $this->iso_time->from_timestamp( $link->checked_at ), 'uses_count' => $link->uses_count, ); } }