blob: 77056782c61bcb4117452bba4cd40512b9866b19 [file] [log] [blame]
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02001<?php
2
3namespace Illuminate\Contracts\Notifications;
4
5interface 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}