Ok, so
$thingieis your node, or paragraph, or whatever. You're probably writing this code in your thingie's preprocess hookfield_linkis the link field whose data you're trying to access
// Check that the field exists and isn't empty
if ($thingie->hasField('field_link') && !$thingie->field_link->isEmpty()) {
$text = $thingie->get('field_link')->first()->title;
$url = $thingie->get('field_link')->first()->getUrl()->toString();
}