WidgetAnnotationEvent   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 31
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getWidgetName() 0 4 1
A getReceiverProperties() 0 4 1
1
<?php
2
3
namespace Victoire\Bundle\WidgetBundle\Event;
4
5
use Symfony\Component\EventDispatcher\Event;
6
7
class WidgetAnnotationEvent extends Event
0 ignored issues
show
introduced by
Missing class doc comment
Loading history...
8
{
9
    private $widgetName;
10
    private $receiverProperties;
11
12
    public function __construct($widgetName, $receiverProperties)
0 ignored issues
show
introduced by
Missing function doc comment
Loading history...
13
    {
14
        $this->widgetName = $widgetName;
15
        $this->receiverProperties = $receiverProperties;
16
    }
17
18
    /**
19
     * Get widget name.
20
     *
21
     * @return string
22
     */
23
    public function getWidgetName()
24
    {
25
        return $this->widgetName;
26
    }
27
28
    /**
29
     * Get receiverProperties.
30
     *
31
     * @return array
32
     */
33
    public function getReceiverProperties()
34
    {
35
        return $this->receiverProperties;
36
    }
37
}
38