CheckDictionariesConfig   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
eloc 4
c 2
b 0
f 0
dl 0
loc 19
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A load() 0 3 1
1
<?php
2
3
namespace Efabrica\TranslationsAutomatization\Command\CheckDictionaries;
4
5
use Efabrica\TranslationsAutomatization\Storage\StorageInterface;
6
7
class CheckDictionariesConfig
8
{
9
    /** @var array<string, <string, string>> */
0 ignored issues
show
Documentation Bug introduced by
The doc comment array<string, <string, string>> at position 4 could not be parsed: Unknown type name '<' at position 4 in array<string, <string, string>>.
Loading history...
10
    private $dictionaries;
11
12
    /**
13
     * @param array<string, <string, string>> $dictionaries [language => [key => translation]]
0 ignored issues
show
Documentation Bug introduced by
The doc comment array<string, <string, string>> at position 4 could not be parsed: Unknown type name '<' at position 4 in array<string, <string, string>>.
Loading history...
14
     */
15
    public function __construct(array $dictionaries)
16
    {
17
        $this->dictionaries = $dictionaries;
18
    }
19
20
    /**
21
     * @return array<string, <string, string>> [language => [key => translation]]
0 ignored issues
show
Documentation Bug introduced by
The doc comment array<string, <string, string>> at position 4 could not be parsed: Unknown type name '<' at position 4 in array<string, <string, string>>.
Loading history...
22
     */
23
    public function load(): array
24
    {
25
        return $this->dictionaries;
26
    }
27
}
28