TagRemoved   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 20
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 Robert Conner
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by Conner\Tagging\Events\TagRemoved: $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
     * @param string $tagSlug
24
     */
25
    public function __construct($model, string $tagSlug)
26
    {
27
        $this->model = $model;
28
        $this->tagSlug = $tagSlug;
29
    }
30
}