Completed
Push — master ( bd4cbc...df0c76 )
by Arnaud
9s
created

BeforeConfigurationEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 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 3
    public function __construct($adminsConfiguration)
22
    {
23 3
        $this->adminConfigurations = $adminsConfiguration;
24 3
    }
25
26
    /**
27
     * @return array
28
     */
29 3
    public function getAdminConfigurations()
30
    {
31 3
        return $this->adminConfigurations;
32
    }
33
}
34