AbstractCustomOption::getLabel()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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