FallbackLocaleResolver   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 3
c 1
b 0
f 0
dl 0
loc 10
rs 10
ccs 3
cts 3
cp 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A resolve() 0 2 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Nexendrie\Translation\Resolvers;
5
6
use Nexendrie\Translation\ILocaleResolver;
7
8
/**
9
 * FallbackLocaleResolver
10
 * Fallback resolver when nothing else can be used
11
 * Uses just default language (specified by loader)
12
 *
13
 * @author Jakub Konečný
14
 */
15 1
final class FallbackLocaleResolver implements ILocaleResolver {
16 1
  use \Nette\SmartObject;
17
  
18
  /**
19
   * Resolve language
20
   *
21
   * @return null
22
   */
23
  public function resolve(): ?string {
24 1
    return null;
25
  }
26
}
27
?>