| 1 | <?php |
||
| 5 | class NotificationSending |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * The notifiable entity who received the notification. |
||
| 9 | * |
||
| 10 | * @var mixed |
||
| 11 | */ |
||
| 12 | public $notifiable; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * The notification instance. |
||
| 16 | * |
||
| 17 | * @var \Illuminate\Notifications\Notification |
||
| 18 | */ |
||
| 19 | public $notification; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * The channel name. |
||
| 23 | * |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | public $channel; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Create a new event instance. |
||
| 30 | * |
||
| 31 | * @param mixed $notifiable |
||
| 32 | * @param \Illuminate\Notifications\Notification $notification |
||
| 33 | * @param string $channel |
||
| 34 | * @return void |
||
|
|
|||
| 35 | */ |
||
| 36 | 2 | public function __construct($notifiable, $notification, $channel) |
|
| 42 | } |
||
| 43 |
Adding a
@returnannotation 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.