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

ChangeResultEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 1
1
<?php
2
3
namespace Doctrs\StoredProcedureBundle\Event;
4
5
use PgFunc\Connection;
6
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...
7
8
class ChangeResultEvent extends Event
9
{
10
    /**
11
     * @var mixed
12
     */
13
    private $result;
14
15
    /**
16
     * ChangeConnectionNameEvent constructor.
17
     *
18
     * @param mixed $connection
19
     */
20
    public function __construct($result)
21
    {
22
        $this->result = $result;
23
    }
24
25
    /**
26
     * @return mixed
27
     */
28
    public function getResult()
29
    {
30
        return $this->result;
31
    }
32
33
    /**
34
     * @param mixed $result
35
     */
36
    public function setResult($result)
37
    {
38
        $this->result = $result;
39
40
        return $this;
41
    }
42
}
43