Completed
Push — master ( 491cb3...641a53 )
by Giancarlos
04:32
created

Legend::setCode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 0
cts 5
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 2
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Giansalex
5
 * Date: 17/07/2017
6
 * Time: 23:34
7
 */
8
9
namespace Greenter\Xml\Model\Sale;
10
11
use Symfony\Component\Validator\Constraints as Assert;
12
13
/**
14
 * Class Legend
15
 * @package Greenter\Xml\Model\Sale
16
 */
17
class Legend
18
{
19
    /**
20
     * @Assert\Length(
21
     *     min="4",
22
     *     max="4"
23
     * )
24
     * @var string
25
     */
26
    private $code;
27
28
    /**
29
     * @Assert\Length(max="100")
30
     * @var string
31
     */
32
    private $value;
33
34
    /**
35
     * @return string
36
     */
37
    public function getCode()
38
    {
39
        return $this->code;
40
    }
41
42
    /**
43
     * @param string $code
44
     * @return Legend
45
     */
46
    public function setCode($code)
47
    {
48
        $this->code = $code;
49
        return $this;
50
    }
51
52
    /**
53
     * @return string
54
     */
55
    public function getValue()
56
    {
57
        return $this->value;
58
    }
59
60
    /**
61
     * @param string $value
62
     * @return Legend
63
     */
64
    public function setValue($value)
65
    {
66
        $this->value = $value;
67
        return $this;
68
    }
69
70
}