UserRegistered
class UserRegistered
Simple DTO (Data Transfer Object) class for queueing new account E-mail event.
Properties
| Users | $user | User associated with event. |
|
| bool | $shouldSendEmail | Flag to control if an email should be sent. |
Methods
__construct(Users $user, bool $shouldSendEmail = false)
Constructor
array
toPayload()
Adds instance variables to payload.
static UserRegistered
fromPayload(array $data)
Retrieves information from payload array and returns new instance of this class.
Details
at line 31
__construct(Users $user, bool $shouldSendEmail = false)
Constructor
at line 42
array
toPayload()
Adds instance variables to payload.
at line 56
static UserRegistered
fromPayload(array $data)
Retrieves information from payload array and returns new instance of this class.