TranslationHasBeenSet::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

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