Table   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 86
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 86
rs 10
c 0
b 0
f 0
wmc 5
lcom 0
cbo 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A getColor() 0 4 1
A getFeature() 0 4 1
A getHeight() 0 4 1
A getDeveloper() 0 4 1
1
<?php
2
/**
3
 * @author stev leibelt <[email protected]>
4
 * @since 2013-06-26 
5
 */
6
7
namespace Example\Table;
8
9
/**
10
 * Class Table
11
 *
12
 * @package Example\Table
13
 * @author stev leibelt <[email protected]>
14
 * @since 2013-06-26
15
 */
16
class Table
17
{
18
    /**
19
     * @var string
20
     * @author stev leibelt <[email protected]>
21
     * @since 2013-06-26
22
     */
23
    protected $color;
24
25
    /**
26
     * @var string
27
     * @author stev leibelt <[email protected]>
28
     * @since 2013-06-26
29
     */
30
    protected $feature;
31
32
    /**
33
     * @var string
34
     * @author stev leibelt <[email protected]>
35
     * @since 2013-06-26
36
     */
37
    protected $height;
38
39
    /**
40
     * @var string
41
     * @author stev leibelt <[email protected]>
42
     * @since 2013-06-26
43
     */
44
    protected $developer;
45
46
    /**
47
     * @param string $color
48
     * @param string $feature
49
     * @param string $height
50
     * @param string $developer
51
     * @author stev leibelt <[email protected]>
52
     * @since 2013-06-26
53
     */
54
    public function __construct($color, $feature = '', $height = '0cm', $developer = 'tux')
55
    {
56
        $this->color = $color;
57
        $this->feature = $feature;
58
        $this->height = $height;
59
        $this->developer = $developer;
60
    }
61
62
    /**
63
     * @return string
64
     * @author stev leibelt <[email protected]>
65
     * @since 2013-06-26
66
     */
67
    public function getColor()
68
    {
69
        return $this->color;
70
    }
71
72
    /**
73
     * @return string
74
     * @author stev leibelt <[email protected]>
75
     * @since 2013-06-26
76
     */
77
    public function getFeature()
78
    {
79
        return $this->feature;
80
    }
81
82
    /**
83
     * @return string
84
     * @author stev leibelt <[email protected]>
85
     * @since 2013-06-26
86
     */
87
    public function getHeight()
88
    {
89
        return $this->height;
90
    }
91
92
    /**
93
     * @return string
94
     * @author stev leibelt <[email protected]>
95
     * @since 2013-06-26
96
     */
97
    public function getDeveloper()
98
    {
99
        return $this->developer;
100
    }
101
}