public function notify(Notification
$notification, RecipientInterface
$recipient, string
$transportName = null
): void
{ $message = null;
if ($notification instanceof SmsNotificationInterface
) { $message =
$notification->
asSmsMessage($recipient,
$transportName);
} $message ??= SmsMessage::
fromNotification($notification,
$recipient);
if (null !==
$transportName) { $message->
transport($transportName);
} if (null ===
$this->bus
) { $this->transport->
send($message);
} else { $this->bus->
dispatch($message);
} } public function supports(Notification
$notification, RecipientInterface
$recipient): bool
{