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

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