From f04542e8fb8d269eddabd040c3451751e8e3fe08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Klabbers?= Date: Sun, 16 Jun 2024 13:52:45 +0200 Subject: [PATCH] feat: adds ability for blueprints to ignore user emai; verification --- .../Blueprint/BlueprintInterface.php | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/framework/core/src/Notification/Blueprint/BlueprintInterface.php b/framework/core/src/Notification/Blueprint/BlueprintInterface.php index caae87e41..abbf0f2d5 100644 --- a/framework/core/src/Notification/Blueprint/BlueprintInterface.php +++ b/framework/core/src/Notification/Blueprint/BlueprintInterface.php @@ -24,33 +24,40 @@ interface BlueprintInterface * * @return User|null */ - public function getFromUser(); + public function getFromUser(): ?User; /** * Get the model that is the subject of this activity. * * @return AbstractModel|null */ - public function getSubject(); + public function getSubject(): ?AbstractModel; /** * Get the data to be stored in the notification. * * @return mixed */ - public function getData(); + public function getData(): mixed; /** * Get the serialized type of this activity. * * @return string */ - public static function getType(); + public static function getType(): string; /** * Get the name of the model class for the subject of this activity. * * @return string */ - public static function getSubjectModel(); + public static function getSubjectModel(): string; + + /** + * Whether the blueprint ignores that a user has not verified their email address. + * + * @return bool + */ + public function ignoresUserVerification(): bool; }