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

WidgetFormPreCreateEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 5
rs 9.4285
c 1
b 0
f 1
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
namespace Victoire\Bundle\WidgetBundle\Event;
4
5
use Symfony\Component\EventDispatcher\Event;
6
use Victoire\Bundle\WidgetBundle\Form\WidgetOptionsContainer;
7
8
class WidgetFormPreCreateEvent extends Event
0 ignored issues
show
introduced by
Missing class doc comment
Loading history...
9
{
10
    /**
11
     * @var array
12
     */
13
    public $optionsContainer;
14
15
    /**
16
     * @var string
17
     */
18
    public $widgetFormTypeClass;
19
20
    /**
21
     * WidgetFormPreCreateEvent constructor.
22
     *
23
     * @param WidgetOptionsContainer $optionsContainer
24
     * @param string                 $widgetFormTypeClass
25
     */
26
    public function __construct(WidgetOptionsContainer $optionsContainer, $widgetFormTypeClass)
27
    {
28
        $this->optionsContainer = $optionsContainer;
0 ignored issues
show
Documentation Bug introduced by
It seems like $optionsContainer of type object<Victoire\Bundle\W...WidgetOptionsContainer> is incompatible with the declared type array of property $optionsContainer.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
29
        $this->widgetFormTypeClass = $widgetFormTypeClass;
30
    }
31
}
32