TranslationHasBeenSet   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 17
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
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