Completed
Pull Request — 5.6 (#2830)
by Jeroen
14:14
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
    public function __construct(PagePartInterface $pagePart)
28
    {
29
        $this->pagePart = $pagePart;
30
    }
31
32
    /**
33
     * @return PagePartInterface
34
     */
35
    public function getPagePart()
36
    {
37
        return $this->pagePart;
38
    }
39
40
    public function setPagePart(PagePartInterface $pagePart)
41
    {
42
        $this->pagePart = $pagePart;
43
    }
44
45
    /**
46
     * @return Response
47
     */
48
    public function getResponse()
49
    {
50
        return $this->response;
51
    }
52
53
    public function setResponse(Response $response)
54
    {
55
        $this->response = $response;
56
    }
57
}
58