Passed
Push — main ( 86fec7...422411 )
by Breno
01:44
created

NaiveTranslator   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A translate() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
namespace BrenoRoosevelt\Validation\Translation;
5
6
/** @internal */
7
class NaiveTranslator implements TranslatorInterface
8
{
9
    public function translate(string $message, ...$args): ?string
10
    {
11
        return sprintf($message, ...$args);
12
    }
13
}
14