Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 6 |
CRAP | |
0.00% |
0 / 9 |
| NoCheckinCheckoutNotifications | |
0.00% |
0 / 1 |
|
0.00% |
0 / 6 |
42 | |
0.00% |
0 / 9 |
| __construct | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| via | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| toMail | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| toDatabase | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 3 |
|||
| toArray | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| toSlack | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| <?php | |
| namespace App\Notifications; | |
| use Illuminate\Bus\Queueable; | |
| use Illuminate\Notifications\Notification; | |
| use Illuminate\Contracts\Queue\ShouldQueue; | |
| class NoCheckinCheckoutNotifications extends Notification implements Shouldqueue | |
| { | |
| use Queueable; | |
| protected $arr; | |
| /** | |
| * Create a new notification instance. | |
| * | |
| * @return void | |
| */ | |
| public function __construct($arr) | |
| { | |
| $this->arr = $arr; | |
| } | |
| /** | |
| * Get the notification's delivery channels. | |
| * | |
| * @param mixed $notifiable | |
| * @return array | |
| */ | |
| public function via($notifiable) | |
| { | |
| return ['database']; | |
| } | |
| /** | |
| * Get the mail representation of the notification. | |
| * | |
| * @param mixed $notifiable | |
| * @return \Illuminate\Notifications\Messages\MailMessage | |
| */ | |
| public function toMail($notifiable) | |
| { | |
| } | |
| public function toDatabase($notifiable) | |
| { | |
| return [ | |
| 'Team' => $this->arr[0], | |
| 'name' => $this->arr[1], | |
| 'message' => $this->arr[2] | |
| ]; | |
| } | |
| /** | |
| * Get the array representation of the notification. | |
| * | |
| * @param mixed $notifiable | |
| * @return array | |
| */ | |
| public function toArray($notifiable) | |
| { | |
| return [ | |
| // | |
| ]; | |
| } | |
| /** | |
| * Get the Slack representation of the notification. | |
| * | |
| * @param mixed $notifiable | |
| * @return SlackMessage | |
| */ | |
| public function toSlack($notifiable) | |
| { | |
| } | |
| } |