Passed
Push — master ( ab2678...bf154d )
by webdevetc
14:17
created

CommentWillBeDeleted::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 2
b 0
f 0
cc 1
nc 1
nop 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