Completed
Push — master ( e8bfce...313e31 )
by Arnaud
13s queued 11s
created

OldBuildMenuEvent::setMenuConfigurations()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
1
<?php
2
3
namespace LAG\AdminBundle\Event\Events;
4
5
use Symfony\Component\EventDispatcher\Event;
6
7
class OldBuildMenuEvent extends Event
0 ignored issues
show
Deprecated Code introduced by
The class Symfony\Component\EventDispatcher\Event has been deprecated: since Symfony 4.3, use "Symfony\Contracts\EventDispatcher\Event" instead ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

7
class OldBuildMenuEvent extends /** @scrutinizer ignore-deprecated */ Event
Loading history...
8
{
9
    /**
10
     * @var array
11
     */
12
    private $menuConfigurations;
13
14
    /**
15
     * @var bool
16
     */
17
    private $buildResourceMenu;
18
19
    /**
20
     * MenuEvent constructor.
21
     */
22
    public function __construct(array $menuConfigurations = [], bool $buildResourceMenu = true)
23
    {
24
        $this->menuConfigurations = $menuConfigurations;
25
        $this->buildResourceMenu = $buildResourceMenu;
26
    }
27
28
    public function getMenuConfigurations(): array
29
    {
30
        return $this->menuConfigurations;
31
    }
32
33
    public function setMenuConfigurations(array $menuConfigurations)
34
    {
35
        $this->menuConfigurations = $menuConfigurations;
36
    }
37
38
    public function isBuildResourceMenu(): bool
39
    {
40
        return $this->buildResourceMenu;
41
    }
42
}
43