| 1 | <?php |
||
| 10 | class PushoverChannel |
||
| 11 | { |
||
| 12 | /** @var Pushover */ |
||
| 13 | protected $pushover; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Create a new Pushover channel instance. |
||
| 17 | * |
||
| 18 | * @param Pushover $pushover |
||
| 19 | */ |
||
| 20 | 4 | public function __construct(Pushover $pushover, Dispatcher $events) |
|
| 25 | |||
| 26 | /** |
||
| 27 | * Send the given notification. |
||
| 28 | * |
||
| 29 | * @param mixed $notifiable |
||
| 30 | * @param \Illuminate\Notifications\Notification $notification |
||
| 31 | * |
||
| 32 | * @throws \NotificationChannels\Pushover\Exceptions\CouldNotSendNotification |
||
| 33 | */ |
||
| 34 | 4 | public function send($notifiable, Notification $notification) |
|
| 50 | 3 | ||
| 51 | 3 | protected function fireFailedEvent($notifiable, $notification, $message) |
|
| 57 | } |
||
| 58 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: