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

Translation::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 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