Passed
Push — master ( c8e4bc...17399e )
by Jacobo
04:15
created

FilterEventDispatched   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
c 1
b 0
f 0
dl 0
loc 44
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace SquareetLabs\LaravelOpenVidu\Events;
4
5
6
/**
7
 * Class FilterEventDispatched
8
 * @package SquareetLabs\LaravelOpenVidu\Events
9
 */
10
class FilterEventDispatched
11
{
12
    /**
13
     * @var string $sessionId
14
     * Session for which the event was triggered
15
     * A string with the session unique identifier
16
     */
17
    public $sessionId;
18
    /**
19
     * @var int $timestamp
20
     * Time when the event was triggered
21
     * UTC milliseconds
22
     */
23
    public $timestamp;
24
25
    /**
26
     * @var string $participantId
27
     * Identifier of the participant
28
     * A string with the participant unique identifier
29
     */
30
    public $participantId;
31
32
    /**
33
     * @var string $streamId
34
     * Identifier of the stream for which the filter is applied
35
     * A string with the stream unique identifier
36
     */
37
    public $streamId;
38
39
    /**
40
     * @var string $event
41
     * Openvidu server webhook event
42
     */
43
    public $event;
44
45
    /**
46
     * Create a new SessionCreated event instance.
47
     * @param  array  $data
48
     */
49
    public function __construct(array $data)
50
    {
51
        $this->sessionId = $data['sessionId'];
52
        $this->timestamp = $data['timestamp'];
53
        $this->event = $data['event'];
54
    }
55
}