Completed
Push — master ( aba493...5356ed )
by Ruud
315:38 queued 305:00
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
13
{
14
    /**
15
     * @var Response
16
     */
17
    protected $response;
18
19
    /**
20
     * @var RenderContext
21
     */
22
    protected $renderContext;
23
24
    /**
25
     * @param Response      $response
0 ignored issues
show
Should the type for parameter $response not be null|Response?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
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