Completed
Push — master ( eab2a6...645cff )
by Jeroen
30s queued 13s
created

PreNodeDuplicateEvent   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 1
dl 0
loc 41
ccs 0
cts 22
cp 0
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getNode() 0 4 1
A setNode() 0 6 1
A getResponse() 0 4 1
A setResponse() 0 6 1
1
<?php
2
3
namespace Kunstmaan\NodeBundle\Event;
4
5
use Kunstmaan\NodeBundle\Entity\Node;
6
use Symfony\Component\EventDispatcher\Event;
7
use Symfony\Component\HttpFoundation\Response;
8
9
final class PreNodeDuplicateEvent extends Event
0 ignored issues
show
Deprecated Code introduced by Ruud Denivel
The class Symfony\Component\EventDispatcher\Event has been deprecated with message: since Symfony 4.3, use "Symfony\Contracts\EventDispatcher\Event" instead

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

Loading history...
10
{
11
    /**
12
     * @var Node
13
     */
14
    private $node;
15
16
    /**
17
     * @var Response
18
     */
19
    private $response;
20
21
    public function __construct(Node $node)
22
    {
23
        $this->node = $node;
24
    }
25
26
    public function getNode(): Node
27
    {
28
        return $this->node;
29
    }
30
31
    public function setNode(Node $node): self
32
    {
33
        $this->node = $node;
34
35
        return $this;
36
    }
37
38
    public function getResponse(): Response
39
    {
40
        return $this->response;
41
    }
42
43
    public function setResponse(Response $response): self
44
    {
45
        $this->response = $response;
46
47
        return $this;
48
    }
49
}
50