Table   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 122
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 122
rs 10
c 0
b 0
f 0
wmc 8
lcom 0
cbo 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A setColor() 0 6 1
A getColor() 0 4 1
A setHeight() 0 6 1
A getHeight() 0 4 1
A setLength() 0 6 1
A getLength() 0 4 1
A setWidth() 0 6 1
A getWidth() 0 4 1
1
<?php
2
/**
3
 * @author stev leibelt <[email protected]>
4
 * @since 2013-08-12 
5
 */
6
7
namespace Example\Validator;
8
9
/**
10
 * Class Table
11
 *
12
 * @package Example\Validator
13
 * @author stev leibelt <[email protected]>
14
 * @since 2013-08-12
15
 */
16
class Table
17
{
18
    /**
19
     * @var string
20
     * @author stev leibelt <[email protected]>
21
     * @since 2013-08-12
22
     */
23
    protected $color;
24
25
    /**
26
     * @var int
27
     * @author stev leibelt <[email protected]>
28
     * @since 2013-08-12
29
     */
30
    protected $height;
31
32
    /**
33
     * @var int
34
     * @author stev leibelt <[email protected]>
35
     * @since 2013-08-12
36
     */
37
    protected $length;
38
39
    /**
40
     * @var int
41
     * @author stev leibelt <[email protected]>
42
     * @since 2013-08-12
43
     */
44
    protected $width;
45
46
    /**
47
     * @param string $color
48
     * @return $this
49
     * @author stev leibelt <[email protected]>
50
     * @since 2013-08-12
51
     */
52
    public function setColor($color)
53
    {
54
        $this->color = $color;
55
56
        return $this;
57
    }
58
59
    /**
60
     * @return string
61
     * @author stev leibelt <[email protected]>
62
     * @since 2013-08-12
63
     */
64
    public function getColor()
65
    {
66
        return $this->color;
67
    }
68
69
    /**
70
     * @param int $height
71
     * @return $this
72
     * @author stev leibelt <[email protected]>
73
     * @since 2013-08-12
74
     */
75
    public function setHeight($height)
76
    {
77
        $this->height = $height;
78
79
        return $this;
80
    }
81
82
    /**
83
     * @return int
84
     * @author stev leibelt <[email protected]>
85
     * @since 2013-08-12
86
     */
87
    public function getHeight()
88
    {
89
        return $this->height;
90
    }
91
92
    /**
93
     * @param int $length
94
     * @return $this
95
     * @author stev leibelt <[email protected]>
96
     * @since 2013-08-12
97
     */
98
    public function setLength($length)
99
    {
100
        $this->length = $length;
101
102
        return $this;
103
    }
104
105
    /**
106
     * @return int
107
     * @author stev leibelt <[email protected]>
108
     * @since 2013-08-12
109
     */
110
    public function getLength()
111
    {
112
        return $this->length;
113
    }
114
115
    /**
116
     * @param int $width
117
     * @return $this
118
     * @author stev leibelt <[email protected]>
119
     * @since 2013-08-12
120
     */
121
    public function setWidth($width)
122
    {
123
        $this->width = $width;
124
125
        return $this;
126
    }
127
128
    /**
129
     * @return int
130
     * @author stev leibelt <[email protected]>
131
     * @since 2013-08-12
132
     */
133
    public function getWidth()
134
    {
135
        return $this->width;
136
    }
137
}