Completed
Push — master ( 4fc9d1...10b12e )
by claudio
04:55
created

CaldavSyncOkEvent   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 0
cbo 2
dl 0
loc 36
ccs 0
cts 12
cp 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getCalendar() 0 4 1
A broadcastOn() 0 4 1
1
<?php
2
3
namespace plunner\Events;
4
5
use plunner\Events\Event;
6
use Illuminate\Queue\SerializesModels;
7
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
8
9
class CaldavSyncOkEvent extends Event
10
{
11
    use SerializesModels;
12
13
    /**
14
     * @var Calendar
15
     */
16
    private $calendar;
17
18
    /**
19
     * CaldavSyncOkEvent constructor.
20
     * @param Calendar $calendar
21
     */
22
    public function __construct(Calendar $calendar)
23
    {
24
        $this->calendar = $calendar;
25
    }
26
27
    /**
28
     * @return Calendar
29
     */
30
    public function getCalendar()
31
    {
32
        return $this->calendar;
33
    }
34
35
    /**
36
     * Get the channels the event should be broadcast on.
37
     *
38
     * @return array
39
     */
40
    public function broadcastOn()
41
    {
42
        return [];
43
    }
44
}
45