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

AbstractEvent::getName()   A

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 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 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