Passed
Push — master ( 9213a8...e174b6 )
by Kevin
02:14
created

BuildScheduleEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
eloc 4
c 0
b 0
f 0
dl 0
loc 12
ccs 5
cts 5
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getSchedule() 0 3 1
1
<?php
2
3
namespace Zenstruck\ScheduleBundle\Event;
4
5
use Symfony\Contracts\EventDispatcher\Event;
6
use Zenstruck\ScheduleBundle\Schedule;
7
8
/**
9
 * @author Kevin Bond <[email protected]>
10
 */
11
final class BuildScheduleEvent extends Event
12
{
13
    private $schedule;
14
15 62
    public function __construct(Schedule $schedule)
16
    {
17 62
        $this->schedule = $schedule;
18 62
    }
19
20 62
    public function getSchedule(): Schedule
21
    {
22 62
        return $this->schedule;
23
    }
24
}
25