SettingWasUpdated::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 7
rs 9.4286
c 1
b 0
f 1
cc 1
eloc 5
nc 1
nop 4
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