Completed
Push — master ( 2d65d3...31edf8 )
by Kamil
15:56
created

OptionValueTranslation   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A getValue() 0 4 1
A setValue() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the Sylius package.
5
 *
6
 * (c) Paweł Jędrzejewski
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 Sylius\Component\Variation\Model;
13
14
use Sylius\Component\Product\Model\OptionValueTranslationInterface;
15
use Sylius\Component\Translation\Model\AbstractTranslation;
16
17
/**
18
 * @author Vincenzo Provenza <[email protected]>
19
 */
20
class OptionValueTranslation extends AbstractTranslation implements OptionValueTranslationInterface
21
{
22
    /**
23
     * @var mixed
24
     */
25
    protected $id;
26
27
    /**
28
     * @var string
29
     */
30
    protected $value;
31
32
    /**
33
     * {@inheritdoc}
34
     */
35
    public function getId()
36
    {
37
        return $this->id;
38
    }
39
40
    /**
41
     * {@inheritdoc}
42
     */
43
    public function getValue()
44
    {
45
        return $this->value;
46
    }
47
48
    /**
49
     * {@inheritdoc}
50
     */
51
    public function setValue($value)
52
    {
53
        $this->value = $value;
54
    }
55
}
56