Passed
Push — main ( faeaf0...5f5b5b )
by Thierry
36:26 queued 28:38
created

Utils::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
c 0
b 0
f 0
nc 1
nop 4
dl 0
loc 6
rs 10
1
<?php
2
3
namespace Lagdo\DbAdmin\Driver\Utils;
4
5
class Utils
6
{
7
    /**
8
     * @var TranslatorInterface
9
     */
10
    public $trans;
11
12
    /**
13
     * @var Input
14
     */
15
    public $input;
16
17
    /**
18
     * @var Str
19
     */
20
    public $str;
21
22
    /**
23
     * @var History
24
     */
25
    public $history;
26
27
    /**
28
     * @param TranslatorInterface $trans
29
     * @param Input $input
30
     * @param Str $str
31
     * @param History $history
32
     */
33
    public function __construct(TranslatorInterface $trans, Input $input, Str $str, History $history)
34
    {
35
        $this->trans = $trans;
36
        $this->input = $input;
37
        $this->str = $str;
0 ignored issues
show
Documentation Bug introduced by
It seems like $str of type Lagdo\DbAdmin\Driver\Utils\Str is incompatible with the declared type string of property $str.

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...
38
        $this->history = $history;
39
    }
40
}
41