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

OldBuildMenuEvent   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 8
c 0
b 0
f 0
dl 0
loc 34
ccs 0
cts 16
cp 0
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A setMenuConfigurations() 0 3 1
A getMenuConfigurations() 0 3 1
A isBuildResourceMenu() 0 3 1
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