Completed
Push — master ( 90072e...c81959 )
by Daniel
11:23
created

i18nProviderClass   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A provideI18nEntities() 0 16 1
1
<?php
2
3
use SilverStripe\i18n\i18nEntityProvider;
4
5
class i18nProviderClass implements i18nEntityProvider
6
{
7
    public function provideI18nEntities()
8
    {
9
        return [
10
            'i18nProviderClass.TITLE' => 'My Provider Class',
11
            'i18nProviderClass.PLURALS' => [
12
                'comment' => 'Plural forms for the test class',
13
                'one' => 'A class',
14
                'other' => '{count} classes',
15
            ],
16
            'i18nProviderClass.OTHER_MODULE' => [
17
                'comment' => 'Test string in another module',
18
                'default' => 'i18ntestmodule string defined in i18nothermodule',
19
                'module' => 'i18ntestmodule'
20
            ],
21
        ];
22
    }
23
}
24