Translations::mnProblematicData()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
3
namespace kalanis\kw_menu;
4
5
6
use kalanis\kw_menu\Interfaces\IMNTranslations;
7
8
9
/**
10
 * Class Translations
11
 * @package kalanis\kw_menu
12
 */
13
class Translations implements IMNTranslations
14
{
15 1
    public function mnCannotOpen(): string
16
    {
17 1
        return 'Cannot open menu metadata';
18
    }
19
20 1
    public function mnCannotSave(): string
21
    {
22 1
        return 'Cannot write menu metadata';
23
    }
24
25 2
    public function mnItemNotFound(string $item): string
26
    {
27 2
        return sprintf('Item for file *%s* not found', $item);
28
    }
29
30 2
    public function mnProblematicData(): string
31
    {
32 2
        return 'You post problematic data!';
33
    }
34
35 1
    public function mnNoAvailableEntrySource(): string
36
    {
37 1
        return 'No available entry source for set params!';
38
    }
39
40 1
    public function mnNoAvailableMetaSource(): string
41
    {
42 1
        return 'No available meta data source for set params!';
43
    }
44
}
45