1
0
mirror of https://github.com/flarum/core.git synced 2025-08-03 15:07:53 +02:00

feat: adds ability for blueprints to ignore user emai; verification

This commit is contained in:
Daniël Klabbers
2024-06-16 13:52:45 +02:00
parent 64cd6d1988
commit f04542e8fb

View File

@@ -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;
}