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

src/Kunstmaan/NodeBundle/Event/SlugEvent.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\Helper\RenderContext;
6
use Symfony\Component\EventDispatcher\Event;
7
use Symfony\Component\HttpFoundation\Response;
8
9
/**
10
 * Class SlugEvent
11
 */
12
class SlugEvent 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...
13
{
14
    /**
15
     * @var Response
16
     */
17
    protected $response;
18
19
    /**
20
     * @var RenderContext
21
     */
22
    protected $renderContext;
23
24
    /**
25
     * @param Response      $response
26
     * @param RenderContext $renderContext
27
     */
28 1
    public function __construct(Response $response = null, RenderContext $renderContext)
29
    {
30 1
        $this->response = $response;
31 1
        $this->renderContext = $renderContext;
32 1
    }
33
34
    /**
35
     * @return Response
36
     */
37 1
    public function getResponse()
38
    {
39 1
        return $this->response;
40
    }
41
42
    /**
43
     * @param Response $response
44
     */
45 1
    public function setResponse(Response $response)
46
    {
47 1
        $this->response = $response;
48 1
    }
49
50
    /**
51
     * @return RenderContext
52
     */
53 1
    public function getRenderContext()
54
    {
55 1
        return $this->renderContext;
56
    }
57
58
    /**
59
     * @param RenderContext $renderContext
60
     */
61 1
    public function setRenderContext(RenderContext $renderContext)
62
    {
63 1
        $this->renderContext = $renderContext;
64 1
    }
65
}
66