TimingEvent::getTimingId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace BrainExe\Core\EventDispatcher\Events;
4
5
use BrainExe\Core\EventDispatcher\AbstractEvent;
6
use BrainExe\Core\Traits\JsonSerializableTrait;
7
use JsonSerializable;
8
9
class TimingEvent extends AbstractEvent implements JsonSerializable
10
{
11
    use JsonSerializableTrait;
12
13
    const TIMING_EVENT = 'timing.timing';
14
15
    /**
16
     * @var string
17
     */
18
    private $timingId;
19
20
    /**
21
     * @param string $timingId
22
     */
23 1
    public function __construct(string $timingId)
24
    {
25 1
        parent::__construct(self::TIMING_EVENT);
26
27 1
        $this->timingId = $timingId;
28 1
    }
29
30
    /**
31
     * @return string
32
     */
33 1
    public function getTimingId()
34
    {
35 1
        return $this->timingId;
36
    }
37
}
38