GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

MessageSent::broadcastOn()   A
last analyzed

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 LBHurtado\EngageSpark\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 MessageSent
14
{
15
    use Dispatchable, InteractsWithSockets, SerializesModels;
16
17
    /** @var string */
18
    public $mobile;
19
20
    /** @var string */
21
    public $message;
22
23
    /** @var string */
24
    public $senderId;
25
26
    /**
27
     * Create a new event instance.
28
     *
29
     * @param string $mobile
30
     * @param string $message
31
     * @param string $senderId
32
     */
33
    public function __construct(string $mobile, string $message, string $senderId = null)
34
    {
35
        $this->mobile = $mobile;
36
        $this->message = $message;
37
        $this->senderId = $senderId;
38
    }
39
40
    /**
41
     * Get the channels the event should broadcast on.
42
     *
43
     * @return \Illuminate\Broadcasting\Channel|array
44
     */
45
    public function broadcastOn()
46
    {
47
        return new PrivateChannel('channel-name');
48
    }
49
}