Failed Conditions
Pull Request — master (#29)
by Yo
08:36 queued 06:31
created

Event   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 0 Features 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 21
rs 10
c 1
b 0
f 0
ccs 5
cts 5
cp 1

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 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