| Total Complexity | 3 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class NewTechTipCommentNotification extends Notification |
||
| 14 | { |
||
| 15 | use Queueable; |
||
| 16 | |||
| 17 | protected $comment; |
||
| 18 | protected $user; |
||
| 19 | protected $tip; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Create a new notification instance |
||
| 23 | */ |
||
| 24 | public function __construct(TechTipComment $comment, User $user) |
||
| 25 | { |
||
| 26 | $this->comment = $comment; |
||
| 27 | $this->user = $user; |
||
| 28 | $this->tip = TechTip::find($comment->tip_id); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get the notification's delivery channels |
||
| 33 | */ |
||
| 34 | public function via($notifiable) |
||
|
|
|||
| 35 | { |
||
| 36 | return ['mail']; |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Get the mail representation of the notification |
||
| 41 | */ |
||
| 42 | public function toMail($notifiable) |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 65 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.