MessageWasSent   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 23
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 NotificationChannels\Jusibe\Events;
4
5
use Illuminate\Notifications\Notifiable;
6
use Illuminate\Notifications\Notification;
7
8
class MessageWasSent
9
{
10
    /**
11
     * @var Notifiable
12
     */
13
    protected $notifiable;
14
15
    /**
16
     * @var Notification
17
     */
18
    protected $notification;
19
20
    /**
21
     * @param Notifiable $notifiable
0 ignored issues
show
introduced by
The type Notifiable for parameter $notifiable is a trait, and thus cannot be used for type-hinting in PHP. Maybe consider adding an interface and use that for type-hinting?
Loading history...
22
     * @param Notification $notification
23
     */
24
    public function __construct($notifiable, Notification $notification)
25
    {
26
        $this->notifiable = $notifiable;
27
28
        $this->notification = $notification;
29
    }
30
}
31