Last active
August 12, 2022 13:33
-
-
Save mikemix/7f0a10cdae51dc738f2b53ec116dbaee to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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