Completed
Push — master ( 155019...7aca82 )
by Yo
02:17
created

AbstractEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 2
c 1
b 1
f 0
lcom 0
cbo 1
dl 0
loc 21
ccs 5
cts 5
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setName() 0 4 1
A getName() 0 4 1
1
<?php
2
namespace Yoanm\Behat3SymfonyExtension\Event;
3
4
use Symfony\Component\EventDispatcher\Event as BaseEvent;
5
6
abstract class AbstractEvent extends BaseEvent
7
{
8
    /** @var string */
9
    private $name;
10
11
    /**
12
     * @param string $name
13
     */
14 1
    public function setName($name)
15
    {
16 1
        $this->name = $name;
17 1
    }
18
19
    /**
20
     * @return string
21
     */
22 1
    public function getName()
23
    {
24 1
        return $this->name;
25
    }
26
}
27