getTranslateStrings()   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
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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