Completed
Pull Request — 5.6 (#2830)
by Jeroen
14:14
created

Kunstmaan/VotingBundle/Event/AbstractVoteEvent.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\VotingBundle\Event;
4
5
use Symfony\Component\EventDispatcher\Event;
6
use Symfony\Component\HttpFoundation\Request;
7
8
abstract class AbstractVoteEvent extends Event implements EventInterface
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...
9
{
10
    /**
11
     * @var Request
12
     */
13
    protected $request;
14
15
    /**
16
     * @var string
17
     */
18
    protected $reference;
19
20
    /**
21
     * @var int
22
     */
23
    protected $value;
24
25
    /**
26
     * @param string $reference
27
     * @param int    $value
28
     */
29 8
    public function __construct(Request $request, $reference, $value)
30
    {
31 8
        $this->request = $request;
32 8
        $this->reference = $reference;
33 8
        $this->value = $value;
34 8
    }
35
36
    /**
37
     * @return Request
38
     */
39 8
    public function getRequest()
40
    {
41 8
        return $this->request;
42
    }
43
44
    /**
45
     * @return string
46
     */
47 8
    public function getReference()
48
    {
49 8
        return $this->reference;
50
    }
51
52
    /**
53
     * @return int
54
     */
55 5
    public function getValue()
56
    {
57 5
        return $this->value;
58
    }
59
}
60