| Total Complexity | 3 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class ShopItemNotification extends Notification implements ShouldQueue |
||
| 10 | { |
||
| 11 | use Queueable; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * The item instance. |
||
| 15 | * |
||
| 16 | * @var ShopItem |
||
| 17 | */ |
||
| 18 | public ShopItem $item; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Create a new notification instance. |
||
| 22 | * |
||
| 23 | * @param ShopItem $item |
||
| 24 | */ |
||
| 25 | public function __construct(ShopItem $item) |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Get the notification's delivery channels. |
||
| 32 | * |
||
| 33 | * @param mixed $notifiable |
||
| 34 | * |
||
| 35 | * @return array |
||
| 36 | */ |
||
| 37 | public function via($notifiable): array |
||
|
|
|||
| 38 | { |
||
| 39 | return ['database']; |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Get the array representation of the notification. |
||
| 44 | * |
||
| 45 | * @param mixed $notifiable |
||
| 46 | * |
||
| 47 | * @return array |
||
| 48 | */ |
||
| 49 | public function toDatabase($notifiable): array |
||
| 56 | ]; |
||
| 57 | } |
||
| 59 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.