AbstractCustomOption   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 27
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getLabel() 0 4 1
A setLabel() 0 6 1
1
<?php
2
3
namespace Pim\Bundle\CustomEntityBundle\Entity;
4
5
/**
6
 * @author    Antoine Guigan <[email protected]>
7
 * @copyright 2013 Akeneo SAS (http://www.akeneo.com)
8
 * @license   http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
9
 *
10
 * @deprecated will be removed in 1.7, please use \Pim\Bundle\CustomEntityBundle\Entity\AbstractCustomEntity
11
 */
12
abstract class AbstractCustomOption extends AbstractCustomEntity
13
{
14
    /**
15
     * @var string
16
     */
17
    protected $label;
18
19
    /**
20
     * @return string
21
     */
22
    public function getLabel()
23
    {
24
        return $this->label;
25
    }
26
27
    /**
28
     * @param string $label
29
     *
30
     * @return AbstractCustomOption
31
     */
32
    public function setLabel($label)
33
    {
34
        $this->label = $label;
35
36
        return $this;
37
    }
38
}
39