Completed
Pull Request — master (#221)
by Alec
01:19
created

XliffTranslation   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getUnitId() 0 4 1
A setUnitId() 0 4 1
1
<?php
2
3
namespace Gettext;
4
5
/**
6
 * Class to manage a translation string: XLIFF-specific extensions.
7
 */
8
class XliffTranslation extends Translation
9
{
10
    protected $unitId;
11
12
    /**
13
     * Returns the unit id of this translation.
14
     *
15
     * @return string
16
     */
17
    public function getUnitId()
18
    {
19
        return $this->unitId;
20
    }
21
22
    /**
23
     * Sets the id of this translation.
24
     *
25
     * @param $unitId string
26
     */
27
    public function setUnitId($unitId)
28
    {
29
        $this->unitId = $unitId;
30
    }
31
}
32