Failed Conditions
Pull Request — release/0.2.0 (#35)
by Yo
02:16
created

AbstractEvent::setName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 1 Features 0
Metric Value
dl 0
loc 4
ccs 0
cts 3
cp 0
rs 10
c 1
b 1
f 0
cc 1
eloc 2
nc 1
nop 1
crap 2
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
    public function setName($name)
15
    {
16
        $this->name = $name;
17
    }
18
19
    /**
20
     * @return string
21
     */
22
    public function getName()
23
    {
24
        return $this->name;
25
    }
26
}
27