Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame^] | 1 | <?php |
| 2 | |
| 3 | namespace Illuminate\Contracts\Notifications; |
| 4 | |
| 5 | interface Factory |
| 6 | { |
| 7 | /** |
| 8 | * Get a channel instance by name. |
| 9 | * |
| 10 | * @param string|null $name |
| 11 | * @return mixed |
| 12 | */ |
| 13 | public function channel($name = null); |
| 14 | |
| 15 | /** |
| 16 | * Send the given notification to the given notifiable entities. |
| 17 | * |
| 18 | * @param \Illuminate\Support\Collection|array|mixed $notifiables |
| 19 | * @param mixed $notification |
| 20 | * @return void |
| 21 | */ |
| 22 | public function send($notifiables, $notification); |
| 23 | |
| 24 | /** |
| 25 | * Send the given notification immediately. |
| 26 | * |
| 27 | * @param \Illuminate\Support\Collection|array|mixed $notifiables |
| 28 | * @param mixed $notification |
| 29 | * @return void |
| 30 | */ |
| 31 | public function sendNow($notifiables, $notification); |
| 32 | } |