Completed
Pull Request — master (#1)
by Gorka
04:16
created

Translation   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 20
rs 10
c 1
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A locale() 0 4 1
A origin() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the CMS Kernel library.
5
 *
6
 * Copyright (c) 2016 LIN3S <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace LIN3S\CMSKernel\Infraestructure\Model\Translation;
13
14
use LIN3S\CMSKernel\Domain\Model\Translation\Translation as TranslationInterface;
15
16
/**
17
 * @author Beñat Espiña <[email protected]>
18
 * @author Gorka Laucirica <[email protected]>
19
 */
20
abstract class Translation implements TranslationInterface
21
{
22
    protected $locale;
23
    protected $origin;
24
25
    public function __construct(Locale $locale)
26
    {
27
        $this->locale = $locale;
28
    }
29
30
    public function locale()
31
    {
32
        return $this->locale;
33
    }
34
35
    public function origin()
36
    {
37
        return $this->origin;
38
    }
39
}
40