Completed
Push — develop ( e7cba6...164e03 )
by Freddie
13:34
created

CreateTranslateFileRequest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 22
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php declare(strict_types=1);
2
/*
3
 * This file is part of FlexPHP.
4
 *
5
 * (c) Freddie Gar <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace FlexPHP\Generator\Domain\Messages\Requests;
11
12
final class CreateTranslateFileRequest
13
{
14
    /**
15
     * @var string
16
     */
17
    public $entity;
18
19
    /**
20
     * @var array
21
     */
22
    public $attributes;
23
24
    /**
25
     * @var array
26
     */
27
    public $language;
28
29
    public function __construct(string $entity, array $attributes, string $language)
30
    {
31
        $this->entity = $entity;
32
        $this->attributes = $attributes;
33
        $this->language = $language;
0 ignored issues
show
Documentation Bug introduced by
It seems like $language of type string is incompatible with the declared type array of property $language.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
34
    }
35
}
36