Completed
Pull Request — master (#2)
by Tomáš
09:22
created

NullTranslator   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A translate() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SixtyEightPublishers\User\Common\Translator;
6
7
use Nette;
8
9
final class NullTranslator implements Nette\Localization\ITranslator
10
{
11
	use Nette\SmartObject;
12
	
13
	/*********** interface \Nette\Localization\ITranslator ***********/
14
15
	/**
16
	 * {@inheritdoc}
17
	 */
18
	public function translate($message, $count = NULL): string
19
	{
20
		return (string) $message;
21
	}
22
}
23