ScheduleEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

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