Skip to content

Commit

Permalink
feat: adds ability for blueprints to ignore user emai; verification
Browse files Browse the repository at this point in the history
  • Loading branch information
luceos committed Jun 16, 2024
1 parent 64cd6d1 commit f04542e
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions framework/core/src/Notification/Blueprint/BlueprintInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit f04542e

Please sign in to comment.