1 | <?php |
||
8 | class Cloud |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | * @JMS\Type("string") |
||
13 | */ |
||
14 | protected $backgroundColor; |
||
15 | |||
16 | /** |
||
17 | * @var int |
||
18 | * @JMS\Type("integer") |
||
19 | */ |
||
20 | protected $backgroundOpacity; |
||
21 | |||
22 | /** |
||
23 | * @var int |
||
24 | * @JMS\Type("integer") |
||
25 | */ |
||
26 | protected $width; |
||
27 | |||
28 | /** |
||
29 | * @var int |
||
30 | * @JMS\Type("integer") |
||
31 | */ |
||
32 | protected $height; |
||
33 | |||
34 | /** |
||
35 | * @var string |
||
36 | * @JMS\Type("string") |
||
37 | */ |
||
38 | protected $font; |
||
39 | |||
40 | /** |
||
41 | * @var ArrayCollection |
||
42 | * @JMS\Type("ArrayCollection<SixtyNine\Cloud\Model\CloudWord>") |
||
43 | */ |
||
44 | protected $words; |
||
45 | |||
46 | 4 | public function __construct() |
|
50 | |||
51 | /** |
||
52 | * @param string $backgroundColor |
||
53 | * @return Cloud |
||
54 | */ |
||
55 | 4 | public function setBackgroundColor($backgroundColor) |
|
60 | |||
61 | /** |
||
62 | * @return string |
||
63 | */ |
||
64 | 2 | public function getBackgroundColor() |
|
68 | |||
69 | /** |
||
70 | * @param int $backgroundOpacity |
||
71 | * @return Cloud |
||
72 | */ |
||
73 | 4 | public function setBackgroundOpacity($backgroundOpacity) |
|
78 | |||
79 | /** |
||
80 | * @return int |
||
81 | */ |
||
82 | 1 | public function getBackgroundOpacity() |
|
86 | |||
87 | /** |
||
88 | * @param string $font |
||
89 | * @return Cloud |
||
90 | */ |
||
91 | 4 | public function setFont($font) |
|
96 | |||
97 | /** |
||
98 | * @return string |
||
99 | */ |
||
100 | 5 | public function getFont() |
|
104 | |||
105 | /** |
||
106 | * @param CloudWord $word |
||
107 | * @return Cloud |
||
108 | */ |
||
109 | 3 | public function addWord(CloudWord $word) |
|
116 | |||
117 | /** |
||
118 | * @param CloudWord $word |
||
119 | * @return Cloud |
||
120 | */ |
||
121 | public function removeWord(CloudWord $word) |
||
126 | |||
127 | /** |
||
128 | * @return ArrayCollection |
||
129 | */ |
||
130 | 5 | public function getWords() |
|
134 | |||
135 | /** |
||
136 | * @param int $height |
||
137 | * @return Cloud |
||
138 | */ |
||
139 | 4 | public function setHeight($height) |
|
144 | |||
145 | /** |
||
146 | * @return int |
||
147 | */ |
||
148 | 5 | public function getHeight() |
|
152 | |||
153 | /** |
||
154 | * @param int $width |
||
155 | * @return Cloud |
||
156 | */ |
||
157 | 4 | public function setWidth($width) |
|
162 | |||
163 | /** |
||
164 | * @return int |
||
165 | */ |
||
166 | 5 | public function getWidth() |
|
170 | } |
||
171 | |||
172 |