CloudWord   A
last analyzed

Complexity

Total Complexity 16

Size/Duplication

Total Lines 200
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 95%

Importance

Changes 0
Metric Value
wmc 16
lcom 0
cbo 0
dl 0
loc 200
ccs 38
cts 40
cp 0.95
rs 10
c 0
b 0
f 0

16 Methods

Rating   Name   Duplication   Size   Complexity  
A setSize() 0 6 1
A getSize() 0 4 1
A setCloud() 0 5 1
A getCloud() 0 4 1
A setPosition() 0 5 1
A getPosition() 0 4 1
A setIsVisible() 0 5 1
A getIsVisible() 0 4 1
A setAngle() 0 5 1
A getAngle() 0 4 1
A setColor() 0 5 1
A getColor() 0 4 1
A setText() 0 5 1
A getText() 0 4 1
A setBox() 0 5 1
A getBox() 0 4 1
1
<?php
2
3
namespace SixtyNine\Cloud\Model;
4
5
use JMS\Serializer\Annotation as JMS;
6
use SixtyNine\DataTypes\Box;
7
8
class CloudWord
9
{
10
    /**
11
     * @var int
12
     * @JMS\Type("integer")
13
     */
14
    protected $size;
15
16
    /**
17
     * @var int
18
     * @JMS\Type("integer")
19
     */
20
    protected $angle;
21
22
    /**
23
     * @var string
24
     * @JMS\Type("string")
25
     */
26
    protected $color;
27
28
    /**
29
     * @var string
30
     * @JMS\Type("string")
31
     */
32
    protected $text;
33
34
    /**
35
     * @var array
36
     * @JMS\Type("array")
37
     */
38
    protected $position;
39
40
    /**
41
     * @var Box
42
     * @JMS\Type("SixtyNine\DataTypes\Box")
43
     */
44
    protected $box;
45
46
    /**
47
     * @var bool
48
     * @JMS\Type("boolean")
49
     */
50
    protected $isVisible;
51
52
    /**
53
     * @var Cloud
54
     * @JMS\Type("SixtyNine\Cloud\Model\Cloud")
55
     */
56
    protected $cloud;
57
58
    /**
59
     * Set size
60
     *
61
     * @param integer $size
62
     *
63
     * @return CloudWord
64
     */
65 3
    public function setSize($size)
66
    {
67 3
        $this->size = $size;
68
69 3
        return $this;
70
    }
71
72
    /**
73
     * Get size
74
     *
75
     * @return int
76
     */
77 4
    public function getSize()
78
    {
79 4
        return $this->size;
80
    }
81
82
    /**
83
     * @param \SixtyNine\Cloud\Model\Cloud $cloud
84
     * @return $this
85
     */
86 4
    public function setCloud($cloud)
87
    {
88 4
        $this->cloud = $cloud;
89 4
        return $this;
90
    }
91
92
    /**
93
     * @return \SixtyNine\Cloud\Model\Cloud
94
     */
95
    public function getCloud()
96
    {
97
        return $this->cloud;
98
    }
99
100
    /**
101
     * @param array $position
102
     * @return $this
103
     */
104 4
    public function setPosition($position)
105
    {
106 4
        $this->position = $position;
107 4
        return $this;
108
    }
109
110
    /**
111
     * @return array
112
     */
113 2
    public function getPosition()
114
    {
115 2
        return $this->position;
116
    }
117
118
    /**
119
     * @param boolean $isVisible
120
     * @return $this
121
     */
122 3
    public function setIsVisible($isVisible)
123
    {
124 3
        $this->isVisible = $isVisible;
125 3
        return $this;
126
    }
127
128
    /**
129
     * @return boolean
130
     */
131 2
    public function getIsVisible()
132
    {
133 2
        return $this->isVisible;
134
    }
135
136
    /**
137
     * @param int $angle
138
     * @return $this
139
     */
140 3
    public function setAngle($angle)
141
    {
142 3
        $this->angle = $angle;
143 3
        return $this;
144
    }
145
146
    /**
147
     * @return int
148
     */
149 4
    public function getAngle()
150
    {
151 4
        return $this->angle;
152
    }
153
154
    /**
155
     * @param string $color
156
     * @return $this
157
     */
158 3
    public function setColor($color)
159
    {
160 3
        $this->color = $color;
161 3
        return $this;
162
    }
163
164
    /**
165
     * @return string
166
     */
167 2
    public function getColor()
168
    {
169 2
        return $this->color;
170
    }
171
172
    /**
173
     * @param string $text
174
     * @return $this
175
     */
176 3
    public function setText($text)
177
    {
178 3
        $this->text = $text;
179 3
        return $this;
180
    }
181
182
    /**
183
     * @return string
184
     */
185 4
    public function getText()
186
    {
187 4
        return $this->text;
188
    }
189
190
    /**
191
     * @param Box $box
192
     * @return $this
193
     */
194 3
    public function setBox($box)
195
    {
196 3
        $this->box = $box;
197 3
        return $this;
198
    }
199
200
    /**
201
     * @return Box
202
     */
203 3
    public function getBox()
204
    {
205 3
        return $this->box;
206
    }
207
}
208
209