Completed
Push — master ( 4de43c...7a7d43 )
by Paul
06:26
created

WidgetFlushedEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Victoire\Bundle\CoreBundle\Event;
4
5
use Symfony\Component\EventDispatcher\Event;
6
use Victoire\Bundle\WidgetBundle\Entity\Widget;
7
8
class WidgetFlushedEvent extends Event
0 ignored issues
show
introduced by
Missing class doc comment
Loading history...
9
{
10
    private $widget;
11
12
    /**
13
     * Constructor.
14
     *
15
     * @param Widget $widget
16
     */
17
    public function __construct(Widget $widget)
18
    {
19
        $this->widget = $widget;
20
    }
21
22
    /**
23
     * Get the widget.
24
     *
25
     * @return Widget
26
     */
27
    public function getWidget()
28
    {
29
        return $this->widget;
30
    }
31
}
32