1 | <?php |
||
22 | class RegistrationSuccessNotification extends Notification |
||
23 | { |
||
24 | /** |
||
25 | * Indicates if this is social registration mode or not. |
||
26 | * |
||
27 | * @var bool |
||
28 | */ |
||
29 | public $social; |
||
30 | |||
31 | /** |
||
32 | * Create a notification instance. |
||
33 | * |
||
34 | * @param bool $social |
||
35 | * |
||
36 | * @return void |
||
|
|||
37 | */ |
||
38 | public function __construct($social = false) |
||
42 | |||
43 | /** |
||
44 | * Get the notification's channels. |
||
45 | * |
||
46 | * @param mixed $notifiable |
||
47 | * |
||
48 | * @return array|string |
||
49 | */ |
||
50 | public function via($notifiable) |
||
54 | |||
55 | /** |
||
56 | * Build the mail representation of the notification. |
||
57 | * |
||
58 | * @return \Illuminate\Notifications\Messages\MailMessage |
||
59 | */ |
||
60 | public function toMail() |
||
84 | } |
||
85 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.