CheckDictionariesConfig::load()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
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