Completed
Push — master ( ae5e03...0447ee )
by Jeroen
10:35 queued 04:37
created

NodeBundle/Event/PostNodeDuplicateEvent.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

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
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