Passed
Push — master ( 12c564...fbc502 )
by Petr
08:15
created

Translations   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

5 Methods

Rating   Name   Duplication   Size   Complexity  
A stCannotReadFile() 0 3 1
A stCannotReadKey() 0 3 1
A stConfigurationUnavailable() 0 3 1
A stPathNotFound() 0 3 1
A stStorageNotInitialized() 0 3 1
1
<?php
2
3
namespace kalanis\kw_storage;
4
5
6
use kalanis\kw_storage\Interfaces\IStTranslations;
7
8
9
/**
10
 * Class Translations
11
 * @package kalanis\kw_storage
12
 */
13
class Translations implements IStTranslations
14
{
15 1
    public function stCannotReadKey(): string
16
    {
17 1
        return 'Cannot read key';
18
    }
19
20 4
    public function stCannotReadFile(): string
21
    {
22 4
        return 'Cannot read file';
23
    }
24
25 1
    public function stStorageNotInitialized(): string
26
    {
27 1
        return 'Storage not initialized';
28
    }
29
30 1
    public function stPathNotFound(): string
31
    {
32 1
        return 'Path in storage not found.';
33
    }
34
35 20
    public function stConfigurationUnavailable(): string
36
    {
37 20
        return 'This configuration is not available.';
38
    }
39
}
40