TimingEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 29
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getTimingId() 0 4 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