TranslationHasBeenSet::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 5
crap 2
1
<?php
2
3
namespace LaTevaWeb\Translatable\Events;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
class TranslationHasBeenSet
8
{
9
    public $model;
10
    public $field;
11
    public $locale;
12
    public $oldValue;
13
    public $newValue;
14
15
    public function __construct(Model $model, string $field, string $locale, $oldValue, $newValue)
16
    {
17
        $this->model = $model;
18
        $this->field = $field;
19
        $this->locale = $locale;
20
        $this->oldValue = $oldValue;
21
        $this->newValue = $newValue;
22
    }
23
}
24