Completed
Pull Request — master (#23)
by
unknown
09:20
created

NotificationSending   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

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
    public function __construct($notifiable, $notification, $channel)
37
    {
38
        $this->channel = $channel;
39
        $this->notifiable = $notifiable;
40
        $this->notification = $notification;
41
    }
42
}
43