BlogPostWillBeDeleted   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
dl 0
loc 11
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\Foundation\Events\Dispatchable;
6
use Illuminate\Queue\SerializesModels;
7
use WebDevEtc\BlogEtc\Models\Post;
8
9
/**
10
 * Class BlogPostWillBeDeleted.
11
 */
12
class BlogPostWillBeDeleted
13
{
14
    use Dispatchable;
15
    use SerializesModels;
0 ignored issues
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by WebDevEtc\BlogEtc\Events\BlogPostWillBeDeleted: $id, $relations, $class, $connection, $keyBy
Loading history...
16
17
    /** @var Post */
18
    public $blogEtcPost;
19
20
    public function __construct(Post $post)
21
    {
22
        $this->blogEtcPost = $post;
23
    }
24
}
25