SettingWasUpdated   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php namespace Modules\Setting\Events;
2
3
class SettingWasUpdated
4
{
5
    /**
6
     * @var string The setting name
7
     */
8
    public $name;
9
    /**
10
     * @var string|array
11
     */
12
    public $values;
13
    /**
14
     * @var string|array Containing the old values
15
     */
16
    public $oldValues;
17
    /**
18
     * @var bool
19
     */
20
    public $isTranslatable;
21
22
    public function __construct($name, $isTranslatable, $values, $oldValues = null)
23
    {
24
        $this->name = $name;
25
        $this->isTranslatable = $isTranslatable;
26
        $this->values = $values;
27
        $this->oldValues = $oldValues;
28
    }
29
}
30