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

PreNodeDuplicateEvent::__construct()   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 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 PreNodeDuplicateEvent 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...
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