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 |
||
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 Request $request |
||
27 | * @param string $reference |
||
28 | * @param int $value |
||
29 | */ |
||
30 | public function __construct(Request $request, $reference, $value) |
||
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
31 | { |
||
32 | $this->request = $request; |
||
33 | $this->reference = $reference; |
||
34 | $this->value = $value; |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @return Request |
||
39 | */ |
||
40 | public function getRequest() |
||
41 | { |
||
42 | return $this->request; |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @return string |
||
47 | */ |
||
48 | public function getReference() |
||
49 | { |
||
50 | return $this->reference; |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * @return int |
||
55 | */ |
||
56 | public function getValue() |
||
57 | { |
||
58 | return $this->value; |
||
59 | } |
||
60 | } |
||
61 |