1 | <?php |
||
8 | class PlivoChannel |
||
9 | { |
||
10 | /** |
||
11 | * @var \NotificationChannels\Plivo\Plivo; |
||
12 | */ |
||
13 | protected $plivo; |
||
14 | |||
15 | /** |
||
16 | * The phone number notifications should be sent from. |
||
17 | * |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $from; |
||
21 | |||
22 | /** |
||
23 | * @return void |
||
|
|||
24 | */ |
||
25 | public function __construct(Plivo $plivo) |
||
30 | |||
31 | /** |
||
32 | * Send the given notification. |
||
33 | * |
||
34 | * @param mixed $notifiable |
||
35 | * @param \Illuminate\Notifications\Notification $notification |
||
36 | * |
||
37 | * @throws \NotificationChannels\Plivo\Exceptions\CouldNotSendNotification |
||
38 | */ |
||
39 | public function send($notifiable, Notification $notification) |
||
63 | } |
||
64 |
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.