Completed
Push — master ( 3feca3...df8ec9 )
by Freek
07:29
created

TranslationHasBeenSet::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 11
rs 9.4285
cc 1
eloc 6
nc 1
nop 5
1
<?php
2
3
namespace Spatie\Translatable\Events;
4
5
use Spatie\Translatable\Translatable;
6
7
class TranslationHasBeenSet
8
{
9
    /** @var \Spatie\Translatable\Translatable */
10
    public $model;
11
12
    /** @var string  */
13
    public $attributeName;
14
15
    /** @var string  */
16
    public $locale;
17
18
    public $oldValue;
19
    public $newValue;
20
21
    public function __construct(Translatable $model, string $attributeName, string $locale, $oldValue, $newValue)
22
    {
23
        $this->model = $model;
24
25
        $this->attributeName = $attributeName;
26
27
        $this->locale = $locale;
28
29
        $this->oldValue = $oldValue;
30
        $this->newValue = $newValue;
31
    }
32
}
33