Word   A
last analyzed

Complexity

Total Complexity 12

Size/Duplication

Total Lines 150
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 93.33%

Importance

Changes 0
Metric Value
wmc 12
lcom 0
cbo 0
dl 0
loc 150
ccs 28
cts 30
cp 0.9333
rs 10
c 0
b 0
f 0

12 Methods

Rating   Name   Duplication   Size   Complexity  
A setList() 0 5 1
A getList() 0 4 1
A setCount() 0 5 1
A getCount() 0 4 1
A setText() 0 5 1
A getText() 0 4 1
A setColor() 0 5 1
A getColor() 0 4 1
A setOrientation() 0 5 1
A getOrientation() 0 4 1
A setPosition() 0 5 1
A getPosition() 0 4 1
1
<?php
2
3
namespace SixtyNine\Cloud\Model;
4
5
use JMS\Serializer\Annotation as JMS;
6
7
class Word
8
{
9
    const DIR_VERTICAL = 'vertical';
10
    const DIR_HORIZONTAL = 'horizontal';
11
12
    /**
13
     * @var string
14
     * @JMS\Type("string")
15
     */
16
    protected $text;
17
18
    /**
19
     * @var int
20
     * @JMS\Type("integer")
21
     */
22
    protected $count;
23
24
    /**
25
     * @var string
26
     * @JMS\Type("string")
27
     */
28
    protected $orientation = self::DIR_HORIZONTAL;
29
30
    /**
31
     * @var string
32
     * @JMS\Type("string")
33
     */
34
    protected $color = '000000';
35
36
    /**
37
     * @var int
38
     * @JMS\Type("integer")
39
     */
40
    protected $position;
41
42
    /**
43
     * @var WordsList
44
     * @JMS\Type("SixtyNine\Cloud\Model\WordsList")
45
     */
46
    protected $list;
47
48
    /**
49
     * @param \SixtyNine\Cloud\Model\WordsList $list
50
     * @return $this
51
     */
52 8
    public function setList($list)
53
    {
54 8
        $this->list = $list;
55 8
        return $this;
56
    }
57
58
    /**
59
     * @return \SixtyNine\Cloud\Model\wordsList
60
     */
61
    public function getList()
62
    {
63
        return $this->list;
64
    }
65
66
    /**
67
     * @param int $count
68
     * @return $this
69
     */
70 7
    public function setCount($count)
71
    {
72 7
        $this->count = $count;
73 7
        return $this;
74
    }
75
76
    /**
77
     * @return int
78
     */
79 8
    public function getCount()
80
    {
81 8
        return $this->count;
82
    }
83
84
    /**
85
     * @param string $text
86
     * @return $this
87
     */
88 7
    public function setText($text)
89
    {
90 7
        $this->text = $text;
91 7
        return $this;
92
    }
93
94
    /**
95
     * @return string
96
     */
97 8
    public function getText()
98
    {
99 8
        return $this->text;
100
    }
101
102
    /**
103
     * @param string $color
104
     * @return $this
105
     */
106 7
    public function setColor($color)
107
    {
108 7
        $this->color = $color;
109 7
        return $this;
110
    }
111
112
    /**
113
     * @return string
114
     */
115 4
    public function getColor()
116
    {
117 4
        return $this->color;
118
    }
119
120
    /**
121
     * @param string $orientation
122
     * @return $this
123
     */
124 7
    public function setOrientation($orientation)
125
    {
126 7
        $this->orientation = $orientation;
127 7
        return $this;
128
    }
129
130
    /**
131
     * @return string
132
     */
133 3
    public function getOrientation()
134
    {
135 3
        return $this->orientation;
136
    }
137
138
    /**
139
     * @param int $position
140
     * @return $this
141
     */
142 1
    public function setPosition($position)
143
    {
144 1
        $this->position = $position;
145 1
        return $this;
146
    }
147
148
    /**
149
     * @return int
150
     */
151 4
    public function getPosition()
152
    {
153 4
        return $this->position;
154
    }
155
156
}
157
158