Completed
Push — master ( 11b317...37df4d )
by Lucas
09:27
created

TranslatableLanguage   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 45
ccs 0
cts 7
cp 0
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setRef() 0 5 1
A getRef() 0 4 1
1
<?php
2
/**
3
 * Graviton\I18nBundle\Document\TranslatableLanguage
4
 */
5
6
namespace Graviton\I18nBundle\Document;
7
8
use Graviton\DocumentBundle\Entity\ExtReference;
9
10
/**
11
 * Graviton\I18nBundle\Document\TranslatableLanguage
12
 *
13
 * @author   List of contributors <https://github.com/libgraviton/graviton/graphs/contributors>
14
 * @license  http://opensource.org/licenses/gpl-license.php GNU Public License
15
 * @link     http://swisscom.ch
16
 */
17
class TranslatableLanguage
18
{
19
    /**
20
     * @var MongoId $id
21
     */
22
    protected $id;
23
24
    /**
25
     * @var ExtReference $ref
26
     */
27
    protected $ref;
28
29
30
    /**
31
     * Get id
32
     *
33
     * @return string $id
0 ignored issues
show
Documentation introduced by
Should the return type not be MongoId?

This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.

Loading history...
34
     */
35
    public function getId()
36
    {
37
        return $this->id;
38
    }
39
40
    /**
41
     * Set ref
42
     *
43
     * @param ExtReference $ref value of extref
44
     * @return self
45
     */
46
    public function setRef($ref)
47
    {
48
        $this->ref = $ref;
49
        return $this;
50
    }
51
52
    /**
53
     * Get ref
54
     *
55
     * @return ExtReference $ref
56
     */
57
    public function getRef()
58
    {
59
        return $this->ref;
60
    }
61
}
62