Completed
Pull Request — master (#95)
by
unknown
09:44
created

ModelUntagged::getModel()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Cviebrock\EloquentTaggable\Events;
4
5
use Illuminate\Broadcasting\Channel;
6
use Illuminate\Queue\SerializesModels;
7
use Illuminate\Broadcasting\PrivateChannel;
8
use Illuminate\Broadcasting\PresenceChannel;
9
use Illuminate\Foundation\Events\Dispatchable;
10
use Illuminate\Broadcasting\InteractsWithSockets;
11
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
12
13
class ModelUntagged
14
{
15
    use Dispatchable, InteractsWithSockets, SerializesModels;
16
17
    private $model;
18
    private $tags;
19
20
    /**
21
     * @return mixed
22
     */
23
    public function getModel()
24
    {
25
        return $this->model;
26
    }
27
28
    /**
29
     * @param mixed $model
30
     */
31
    public function setModel($model): void
32
    {
33
        $this->model = $model;
34
    }
35
36
    /**
37
     * @return mixed
38
     */
39
    public function getTags()
40
    {
41
        return $this->tags;
42
    }
43
44
    /**
45
     * @param mixed $tags
46
     */
47
    public function setTags($tags): void
48
    {
49
        $this->tags = $tags;
50
    }
51
52
    /**
53
     * Create a new event instance.
54
     *
55
     * @return void
0 ignored issues
show
Comprehensibility Best Practice introduced by
Adding a @return annotation to constructors is generally not recommended as a constructor does not have a meaningful return value.

Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.

Please refer to the PHP core documentation on constructors.

Loading history...
56
     */
57
    public function __construct($model, $tags)
58
    {
59
        $this->model = $model;
60
        $this->tags = $tags;
61
    }
62
63
    /**
64
     * Get the channels the event should broadcast on.
65
     *
66
     * @return \Illuminate\Broadcasting\Channel|array
67
     */
68
    public function broadcastOn()
69
    {
70
71
    }
72
}
73