VariantOption   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 49
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 1
dl 0
loc 49
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getVariant() 0 4 1
A setVariant() 0 4 1
A getAttribute() 0 4 1
A setAttribute() 0 4 1
A getAttributeValue() 0 4 1
A setAttributeValue() 0 4 1
1
<?php
2
/*
3
 * WellCommerce Open-Source E-Commerce Platform
4
 *
5
 * This file is part of the WellCommerce package.
6
 *
7
 * (c) Adam Piotrowski <[email protected]>
8
 *
9
 * For the full copyright and license information,
10
 * please view the LICENSE file that was distributed with this source code.
11
 */
12
13
namespace WellCommerce\Bundle\CatalogBundle\Entity;
14
15
use WellCommerce\Bundle\CoreBundle\Doctrine\Behaviours\Identifiable;
16
use WellCommerce\Bundle\CoreBundle\Entity\EntityInterface;
17
18
/**
19
 * Class VariantOption
20
 *
21
 * @author  Adam Piotrowski <[email protected]>
22
 */
23
class VariantOption implements EntityInterface
24
{
25
    use Identifiable;
26
    
27
    /**
28
     * @var Variant
29
     */
30
    protected $variant;
31
    
32
    /**
33
     * @var Attribute
34
     */
35
    protected $attribute;
36
    
37
    /**
38
     * @var AttributeValue
39
     */
40
    protected $attributeValue;
41
    
42
    public function getVariant(): Variant
43
    {
44
        return $this->variant;
45
    }
46
    
47
    public function setVariant(Variant $variant)
48
    {
49
        $this->variant = $variant;
50
    }
51
    
52
    public function getAttribute(): Attribute
53
    {
54
        return $this->attribute;
55
    }
56
    
57
    public function setAttribute(Attribute $attribute)
58
    {
59
        $this->attribute = $attribute;
60
    }
61
    
62
    public function getAttributeValue(): AttributeValue
63
    {
64
        return $this->attributeValue;
65
    }
66
    
67
    public function setAttributeValue(AttributeValue $attributeValue)
68
    {
69
        $this->attributeValue = $attributeValue;
70
    }
71
}
72