Skip to content

Instantly share code, notes, and snippets.

@mikemix
Last active August 12, 2022 13:33
Show Gist options
  • Select an option

  • Save mikemix/7f0a10cdae51dc738f2b53ec116dbaee to your computer and use it in GitHub Desktop.

Select an option

Save mikemix/7f0a10cdae51dc738f2b53ec116dbaee to your computer and use it in GitHub Desktop.
<?php
declare(strict_types=1);
namespace App\Notification;
/**
* Transport that physically delivers notifications.
*
* @template T of NotificationInterface
*/
interface TransportInterface
{
public function supports(NotificationInterface $notification): bool;
/**
* @param T $notification
*
* @throws NotificationSendException In case of any errors
*/
public function deliver(NotificationInterface $notification): void;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment