Passed
Push — master ( 94702c...0299cb )
by Oleg
04:57
created

ChangeConnectionNameEvent::setName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Doctrs\StoredProcedureBundle\Event;
4
5
use Symfony\Component\EventDispatcher\Event;
0 ignored issues
show
Bug introduced by
The type Symfony\Component\EventDispatcher\Event was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
7
class ChangeConnectionNameEvent extends Event
8
{
9
    /**
10
     * @var string
11
     */
12
    private $name;
13
14
    /**
15
     * ChangeConnectionNameEvent constructor.
16
     *
17
     * @param string $name
18
     */
19
    public function __construct($name)
20
    {
21
        $this->name = $name;
22
    }
23
24
    /**
25
     * @return string
26
     */
27
    public function getName()
28
    {
29
        return $this->name;
30
    }
31
32
    /**
33
     * @param string $name
34
     *
35
     * @return self
36
     */
37
    public function setName($name)
38
    {
39
        $this->name = $name;
40
41
        return $this;
42
    }
43
44
}
45