NotificationFailed   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace Notimatica\Driver\Events;
4
5
use League\Event\AbstractEvent;
6
use Notimatica\Driver\Contracts\Notification;
7
8
class NotificationFailed extends AbstractEvent
9
{
10
    /**
11
     * @var Notification
12
     */
13
    public $notification;
14
    /**
15
     * @var int
16
     */
17
    public $number;
18
19
    /**
20
     * Create a new NotificationSent.
21
     *
22
     * @param Notification $notification
23
     * @param int $number
24
     */
25 4
    public function __construct(Notification $notification, $number = 1)
26
    {
27 4
        $this->notification = $notification;
28 4
        $this->number = $number;
29 4
    }
30
}
31