OkEvent   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

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

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\Caldav;
4
5
use Illuminate\Queue\SerializesModels;
6
use plunner\Caldav;
7
use plunner\Events\Event;
8
9
class OkEvent extends Event
10
{
11
    use SerializesModels;
12
13
    /**
14
     * @var Caldav
15
     */
16
    private $calendar;
17
18
    /**
19
     * CaldavSyncOkEvent constructor.
20
     * @param Caldav $calendar
21
     */
22
    public function __construct(Caldav $calendar)
23
    {
24
        $this->calendar = clone $calendar;
25
    }
26
27
    /**
28
     * @return Caldav
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