SendingMessage::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
namespace NotificationChannels\Jusibe\Events;
4
5
use Illuminate\Notifications\Notifiable;
6
use Illuminate\Notifications\Notification;
7
8
class SendingMessage
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