Passed
Push — laravel-5 ( 66f120...6eb64b )
by Robert
02:51
created

TagRemoved::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 4
rs 10
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: $id, $class, $connection, $relations
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
}