Passed
Pull Request — master (#4)
by Kevin
07:28
created

ScheduleEvent::runContext()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 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
    private $runContext;
14
15 37
    final public function __construct(ScheduleRunContext $runContext)
16
    {
17 37
        $this->runContext = $runContext;
18 37
    }
19
20 16
    final public function runContext(): ScheduleRunContext
21
    {
22 16
        return $this->runContext;
23
    }
24
}
25