UserRegisteredNotification::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace App\Containers\User\Notifications;
4
5
use App\Containers\User\Models\User;
6
use App\Ship\Parents\Notifications\Notification;
7
use Illuminate\Bus\Queueable;
8
use Illuminate\Contracts\Queue\ShouldQueue;
9
10
class UserRegisteredNotification extends Notification implements ShouldQueue
11
{
12
13
    use Queueable;
14
15
    /**
16
     * @var  \App\Containers\User\Models\User
17
     */
18
    protected $user;
19
20
    /**
21
     * UserRegisteredNotification constructor.
22
     *
23
     * @param \App\Containers\User\Models\User $user
24
     */
25
    public function __construct(User $user)
26
    {
27
        $this->user = $user;
28
    }
29
30
    /**
31
     * @param  mixed $notifiable
32
     *
33
     * @return array
34
     */
35
    public function toArray($notifiable)
0 ignored issues
show
Unused Code introduced by Mahmoud Zalt
The parameter $notifiable is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
36
    {
37
        return [
38
            // ... do you own customization
39
        ];
40
    }
41
42
}
43