TranslationHasBeenSet   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 26
rs 10
c 0
b 0
f 0

1 Method

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