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

src/Events/TagRemoved.php (1 issue)

Severity
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
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
}