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

PostNodeDuplicateEvent::getResponse()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Kunstmaan\NodeBundle\Event;
4
5
use Kunstmaan\NodeBundle\Entity\HasNodeInterface;
6
use Kunstmaan\NodeBundle\Entity\Node;
7
use Symfony\Component\EventDispatcher\Event;
8
use Symfony\Component\HttpFoundation\Response;
9
10
final class PostNodeDuplicateEvent 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...
11
{
12
    /**
13
     * @var Node
14
     */
15
    private $node;
16
17
    /**
18
     * @var Node
19
     */
20
    private $newNode;
21
22
    /**
23
     * @var HasNodeInterface
24
     */
25
    private $newPage;
26
27
    /**
28
     * @var Response
29
     */
30
    private $response;
31
32
    public function __construct(Node $node, Node $newNode, HasNodeInterface $newPage)
33
    {
34
        $this->node = $node;
35
        $this->newNode = $newNode;
36
        $this->newPage = $newPage;
37
    }
38
39
    public function getNode(): Node
40
    {
41
        return $this->node;
42
    }
43
44
    public function setNode(Node $node): self
45
    {
46
        $this->node = $node;
47
48
        return $this;
49
    }
50
51
    public function getNewNode(): Node
52
    {
53
        return $this->newNode;
54
    }
55
56
    public function setNewNode(Node $newNode): self
57
    {
58
        $this->newNode = $newNode;
59
60
        return $this;
61
    }
62
63
    public function getNewPage(): HasNodeInterface
64
    {
65
        return $this->newPage;
66
    }
67
68
    public function setNewPage(HasNodeInterface $newPage): self
69
    {
70
        $this->newPage = $newPage;
71
72
        return $this;
73
    }
74
75
    public function getResponse(): Response
76
    {
77
        return $this->response;
78
    }
79
80
    public function setResponse(Response $response): self
81
    {
82
        $this->response = $response;
83
84
        return $this;
85
    }
86
}
87