Passed
Push — master ( 76ef37...b01b42 )
by Darwin
18:38 queued 08:46
created

SwitchParameterSetEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 5
c 1
b 0
f 1
dl 0
loc 21
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getParameterSet() 0 3 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: boellmann
5
 * Date: 02.10.18
6
 * Time: 14:38
7
 */
8
9
namespace DoL\LdapBundle\Event;
10
11
12
use Symfony\Component\EventDispatcher\Event;
13
14
class SwitchParameterSetEvent extends Event
15
{
16
    const PARAMETERSET = 'dol_ldap.manager.switch_parameter_set';
17
18
    private $parameterSet = [];
19
20
    /**
21
     * SwitchParameterSet constructor.
22
     * @param array $parameterSet
23
     */
24
    public function __construct(array $parameterSet)
25
    {
26
        $this->parameterSet = $parameterSet;
27
    }
28
29
    /**
30
     * @return array
31
     */
32
    public function getParameterSet(): array
33
    {
34
        return $this->parameterSet;
35
    }
36
37
}
38