CommentWillBeDeleted   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
eloc 6
dl 0
loc 12
rs 10
c 2
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace WebDevEtc\BlogEtc\Events;
4
5
use Illuminate\Broadcasting\InteractsWithSockets;
6
use Illuminate\Foundation\Events\Dispatchable;
7
use Illuminate\Queue\SerializesModels;
8
use WebDevEtc\BlogEtc\Models\Comment;
9
10
/**
11
 * Class CommentWillBeDeleted.
12
 */
13
class CommentWillBeDeleted
14
{
15
    use Dispatchable;
16
    use InteractsWithSockets;
17
    use SerializesModels;
0 ignored issues
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by WebDevEtc\BlogEtc\Events\CommentWillBeDeleted: $id, $relations, $class, $connection, $keyBy
Loading history...
18
19
    /** @var Comment */
20
    public $comment;
21
22
    public function __construct(Comment $comment)
23
    {
24
        $this->comment = $comment;
25
    }
26
}
27