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

Legend   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 54
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 54
ccs 0
cts 18
cp 0
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getCode() 0 4 1
A setCode() 0 5 1
A getValue() 0 4 1
A setValue() 0 5 1
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
}