Completed
Push — master ( 06c1ce...67d37c )
by Jeroen
06:20
created

NodeDuplicateEvent::setNode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
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 NodeDuplicateEvent extends Event
0 ignored issues
show
Deprecated Code introduced by Kevin Jossart
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