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

Utils   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 9
c 0
b 0
f 0
dl 0
loc 34
rs 10
wmc 1

1 Method

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