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

src/Kunstmaan/FormBundle/Event/SubmissionEvent.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\FormBundle\Event;
4
5
use Kunstmaan\FormBundle\Entity\FormSubmission;
6
use Kunstmaan\FormBundle\Helper\FormPageInterface;
7
use Symfony\Component\EventDispatcher\Event;
8
9
class SubmissionEvent 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 FormSubmission
13
     */
14
    protected $submission;
15
16
    /**
17
     * @var FormPageInterface
18
     */
19
    protected $page;
20
21
    /**
22
     * @param FormSubmission    $submission
23
     * @param FormPageInterface $page
24
     */
25 1
    public function __construct(FormSubmission $submission, FormPageInterface $page)
26
    {
27 1
        $this->submission = $submission;
28 1
        $this->page = $page;
29 1
    }
30
31
    /**
32
     * @return FormSubmission
33
     */
34 1
    public function getSubmission()
35
    {
36 1
        return $this->submission;
37
    }
38
39
    /**
40
     * @return FormPageInterface
41
     */
42 1
    public function getPage()
43
    {
44 1
        return $this->page;
45
    }
46
}
47