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

TranslationHasBeenSet   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

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