TranslationHasBeenSet   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 11
c 0
b 0
f 0
dl 0
loc 30
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 1
1
<?php
2
3
namespace Translation\Events;
4
5
class TranslationHasBeenSet
6
{
7
    /**
8
     * @var \Translation\Translatable 
0 ignored issues
show
Bug introduced by
The type Translation\Translatable was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
9
     */
10
    public $model;
11
12
    /**
13
     * @var string 
14
     */
15
    public $key;
16
17
    /**
18
     * @var string 
19
     */
20
    public $locale;
21
22
    public $oldValue;
23
    public $newValue;
24
25
    public function __construct($model, string $key, string $locale, $oldValue, $newValue)
26
    {
27
        $this->model = $model;
28
29
        $this->key = $key;
30
31
        $this->locale = $locale;
32
33
        $this->oldValue = $oldValue;
34
        $this->newValue = $newValue;
35
    }
36
}