Completed
Push — master ( 03f7a3...52a260 )
by Colin
16s queued 10s
created

ModelTagged::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 ModelTagged
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
     * @return mixed
30
     */
31
    public function getTags()
32
    {
33
        return $this->tags;
34
    }
35
36
    /**
37
     * Create a new event instance.
38
     *
39
     * @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...
40
     */
41
    public function __construct($model, $tags)
42
    {
43
        $this->model = $model;
44
        $this->tags = $tags;
45
    }
46
47
    /**
48
     * Get the channels the event should broadcast on.
49
     *
50
     * @return \Illuminate\Broadcasting\Channel|array
51
     */
52
    public function broadcastOn()
53
    {
54
55
    }
56
}
57