NotificationSending   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 38
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0
ccs 5
cts 5
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace Illuminate\Notifications\Events;
4
5
class NotificationSending
6
{
7
    /**
8
     * The notifiable entity who received the notification.
9
     *
10
     * @var mixed
11
     */
12
    public $notifiable;
13
14
    /**
15
     * The notification instance.
16
     *
17
     * @var \Illuminate\Notifications\Notification
18
     */
19
    public $notification;
20
21
    /**
22
     * The channel name.
23
     *
24
     * @var string
25
     */
26
    public $channel;
27
28
    /**
29
     * Create a new event instance.
30
     *
31
     * @param  mixed  $notifiable
32
     * @param  \Illuminate\Notifications\Notification  $notification
33
     * @param  string  $channel
34
     * @return void
0 ignored issues
show
Comprehensibility Best Practice introduced by
Adding a @return annotation to constructors is generally not recommended as a constructor does not have a meaningful return value.

Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.

Please refer to the PHP core documentation on constructors.

Loading history...
35
     */
36 2
    public function __construct($notifiable, $notification, $channel)
37
    {
38 2
        $this->channel = $channel;
39 2
        $this->notifiable = $notifiable;
40 2
        $this->notification = $notification;
41 2
    }
42
}
43