Passed
Push — main ( 83bea6...22b11c )
by Thierry
01:32
created

Util   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A name() 0 3 1
A __construct() 0 4 1
1
<?php
2
3
namespace Lagdo\DbAdmin\Driver\Fake;
4
5
use Lagdo\DbAdmin\Driver\Input;
6
use Lagdo\DbAdmin\Driver\TranslatorInterface;
7
use Lagdo\DbAdmin\Driver\UtilInterface;
8
use Lagdo\DbAdmin\Driver\UtilTrait;
9
10
/**
11
 * Fake Util class for testing
12
 */
13
class Util implements UtilInterface
14
{
15
    use UtilTrait;
16
17
    /**
18
     * The constructor
19
     *
20
     * @param TranslatorInterface $trans
21
     * @param Input $input
22
     */
23
    public function __construct(TranslatorInterface $trans, Input $input)
24
    {
25
        $this->trans = $trans;
26
        $this->input = $input;
27
    }
28
29
    /**
30
     * @inheritDoc
31
     */
32
    public function name(): string
33
    {
34
        return 'Test driver';
35
    }
36
}
37