TagRemoved   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace Conner\Tagging\Events;
4
5
use Conner\Tagging\Taggable;
6
use Illuminate\Database\Eloquent\Model;
7
use Illuminate\Queue\SerializesModels;
8
9
class TagRemoved
10
{
11
    use SerializesModels;
0 ignored issues
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by Conner\Tagging\Events\TagRemoved: $collectionClass, $id, $relations, $class, $connection, $keyBy
Loading history...
12
13
    /** @var Taggable|Model * */
14
    public $model;
15
16
    /*** @var string */
17
    public $tagSlug;
18
19
    /**
20
     * Create a new event instance.
21
     *
22
     * @param  Taggable|Model  $model
23
     */
24
    public function __construct($model, string $tagSlug)
25
    {
26
        $this->model = $model;
27
        $this->tagSlug = $tagSlug;
28
    }
29
}
30