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\User\Notification; | |
use App\Notification\EmailAdddress; | |
use App\Notification\EmailNotificationInterface; | |
use App\Notification\Impl\EmailNotification; | |
use App\Template\TemplateEngine; |
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\Impl; | |
use App\Notification\EmailAddress; | |
use App\Notification\EmailNotificationInterface; | |
final class EmailNotification implements EmailNotificationInterface |
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\Implementation; | |
use App\Notification\NotificationInterface; | |
use App\Notification\TransportInterface; | |
/** |
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\Implementation; | |
use App\Notification\NotificationInterface; | |
use App\Notification\NotificationManagerInterface; | |
use App\Notification\NotificationSendException; | |
use App\Notification\TransportInterface; |
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\Implementation; | |
use App\Notification\EmailNotificationInterface; | |
use App\Notification\NotificationInterface; | |
use App\Notification\NotificationSendException; | |
use App\Notification\TransportInterface; |
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 |
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; | |
/** | |
* WhatsApp notification | |
*/ | |
interface WhatsAppNotificationInterface extends NotificationInterface |
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; | |
/** | |
* E-mail notification | |
*/ | |
interface EmailNotificationInterface extends NotificationInterface |
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; | |
/** | |
* The manager responsible for sending notifications. | |
* | |
* It is capable of sending many messages in batch. |
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; | |
/** | |
* The base notification | |
*/ | |
interface NotificationInterface |