Passed
Branch issue/#1 (0514fb)
by Koldo
04:53
created

Event   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A name() 0 3 1
A isPropagationStopped() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Antidot\Event;
6
7
abstract class Event implements EventInterface
8
{
9
    /** @var string */
10
    protected $name;
11
    /** @var bool */
12
    protected $stopped;
13
14 1
    public function name(): string
15
    {
16 1
        return $this->name;
17
    }
18
19 2
    public function isPropagationStopped(): bool
20
    {
21 2
        return $this->stopped;
22
    }
23
}
24