Completed
Pull Request — dev (#50)
by Arnaud
03:27
created

BeforeConfigurationEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 27
rs 10
c 1
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getAdminConfigurations() 0 4 1
1
<?php
2
3
namespace LAG\AdminBundle\Admin\Event;
4
5
use Symfony\Component\EventDispatcher\Event;
6
7
class BeforeConfigurationEvent extends Event
8
{
9
    /**
10
     * An array containing all the admins configuration, indexed by admin name.
11
     *
12
     * @var array
13
     */
14
    protected $adminConfigurations = [];
15
16
    /**
17
     * BeforeConfigurationEvent constructor.
18
     *
19
     * @param $adminsConfiguration
20
     */
21
    public function __construct($adminsConfiguration)
22
    {
23
        $this->adminConfigurations = $adminsConfiguration;
24
    }
25
26
    /**
27
     * @return array
28
     */
29
    public function getAdminConfigurations()
30
    {
31
        return $this->adminConfigurations;
32
    }
33
}
34