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

Translator   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A lang() 0 3 1
1
<?php
2
3
namespace Lagdo\DbAdmin\Driver\Fake;
4
5
use Lagdo\DbAdmin\Driver\TranslatorInterface;
6
7
/**
8
 * Fake Translator class for testing
9
 */
10
class Translator implements TranslatorInterface
11
{
12
    /**
13
     * @inheritDoc
14
     */
15
    public function lang(string $idf, $number = null): string
16
    {
17
        return $idf;
18
    }
19
}
20