LanguageTranslateStringCollection   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 26
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getLanguage() 0 3 1
A getTranslateStrings() 0 3 1
A __construct() 0 4 1
1
<?php // Copyright ⓒ 2018 Magneds IP B.V. - All Rights Reserved
2
namespace Magneds\Lokalise\TranslateString\Entity;
3
4
use Magneds\Lokalise\Language\Entity\Language;
5
6
class LanguageTranslateStringCollection
7
{
8
    /**
9
     * @var string
10
     */
11
    protected $iso;
12
13
    /**
14
     * @var TranslateString[]
15
     */
16
    protected $strings;
17
18
    public function __construct(string $iso, TranslateString ...$strings)
19
    {
20
        $this->iso = $iso;
21
        $this->strings = $strings;
22
    }
23
24
    public function getTranslateStrings(): array
25
    {
26
        return $this->strings;
27
    }
28
29
    public function getLanguage(): string
30
    {
31
        return $this->iso;
32
    }
33
}
34