Failed Conditions
Pull Request — master (#29)
by Yo
04:56 queued 01:32
created

Event::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 0 Features 0
Metric Value
dl 0
loc 4
rs 10
c 1
b 0
f 0
ccs 2
cts 2
cp 1
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 Event extends BaseEvent
0 ignored issues
show
Coding Style introduced by
Event does not seem to conform to the naming convention (^Abstract|Factory$).

This check examines a number of code elements and verifies that they conform to the given naming conventions.

You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.

Loading history...
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