@@ 145-153 (lines=9) @@ | ||
142 | * @param float $width |
|
143 | * @return self |
|
144 | */ |
|
145 | public function setWidth($width) |
|
146 | { |
|
147 | if (null != $width && (!is_numeric($width) || 0 >= $width)) { |
|
148 | $msg = "Width value must be numeric and positive"; |
|
149 | throw new \InvalidArgumentException($msg); |
|
150 | } |
|
151 | $this->width = $width; |
|
152 | return $this; |
|
153 | } |
|
154 | ||
155 | /** |
|
156 | * Gets as height |
|
@@ 171-179 (lines=9) @@ | ||
168 | * @param float $height |
|
169 | * @return self |
|
170 | */ |
|
171 | public function setHeight($height) |
|
172 | { |
|
173 | if (null != $height && (!is_numeric($height) || 0 >= $height)) { |
|
174 | $msg = "Height value must be numeric and positive"; |
|
175 | throw new \InvalidArgumentException($msg); |
|
176 | } |
|
177 | $this->height = $height; |
|
178 | return $this; |
|
179 | } |
|
180 | ||
181 | /** |
|
182 | * Gets as isExpanded |
@@ 196-205 (lines=10) @@ | ||
193 | * @param integer $precision |
|
194 | * @return self |
|
195 | */ |
|
196 | public function setPrecision($precision) |
|
197 | { |
|
198 | $msg = null; |
|
199 | if (null != $precision && !$this->isTPrecisionFacetValid($precision)) { |
|
200 | $msg = "Precision must be a valid TPrecisionFacet"; |
|
201 | throw new \InvalidArgumentException($msg); |
|
202 | } |
|
203 | $this->precision = $precision; |
|
204 | return $this; |
|
205 | } |
|
206 | ||
207 | /** |
|
208 | * Gets as scale |
|
@@ 223-232 (lines=10) @@ | ||
220 | * @param integer $scale |
|
221 | * @return self |
|
222 | */ |
|
223 | public function setScale($scale) |
|
224 | { |
|
225 | $msg = null; |
|
226 | if (null != $scale && !$this->isTScaleFacetValid($scale)) { |
|
227 | $msg = "Scale must be a valid TScaleFacet"; |
|
228 | throw new \InvalidArgumentException($msg); |
|
229 | } |
|
230 | $this->scale = $scale; |
|
231 | return $this; |
|
232 | } |
|
233 | ||
234 | /** |
|
235 | * Gets as unicode |
@@ 196-205 (lines=10) @@ | ||
193 | * @param integer $precision |
|
194 | * @return self |
|
195 | */ |
|
196 | public function setPrecision($precision) |
|
197 | { |
|
198 | $msg = null; |
|
199 | if (null != $precision && !$this->isTPrecisionFacetValid($precision)) { |
|
200 | $msg = "Precision must be a valid TPrecisionFacet"; |
|
201 | throw new \InvalidArgumentException($msg); |
|
202 | } |
|
203 | $this->precision = $precision; |
|
204 | return $this; |
|
205 | } |
|
206 | ||
207 | /** |
|
208 | * Gets as scale |
|
@@ 223-232 (lines=10) @@ | ||
220 | * @param integer $scale |
|
221 | * @return self |
|
222 | */ |
|
223 | public function setScale($scale) |
|
224 | { |
|
225 | $msg = null; |
|
226 | if (null != $scale && !$this->isTScaleFacetValid($scale)) { |
|
227 | $msg = "Scale must be a valid TScaleFacet"; |
|
228 | throw new \InvalidArgumentException($msg); |
|
229 | } |
|
230 | $this->scale = $scale; |
|
231 | return $this; |
|
232 | } |
|
233 | ||
234 | /** |
|
235 | * Gets as sRID |
@@ 254-262 (lines=9) @@ | ||
251 | * @param integer $precision |
|
252 | * @return self |
|
253 | */ |
|
254 | public function setPrecision($precision) |
|
255 | { |
|
256 | if (null != $precision && !(is_numeric($precision) && 0 < $precision)) { |
|
257 | $msg = "Precision must be positive and numeric"; |
|
258 | throw new \InvalidArgumentException($msg); |
|
259 | } |
|
260 | $this->precision = $precision; |
|
261 | return $this; |
|
262 | } |
|
263 | ||
264 | /** |
|
265 | * Gets as scale |
|
@@ 280-288 (lines=9) @@ | ||
277 | * @param integer $scale |
|
278 | * @return self |
|
279 | */ |
|
280 | public function setScale($scale) |
|
281 | { |
|
282 | if (null != $scale && !(is_numeric($scale) && 0 < $scale)) { |
|
283 | $msg = "Scale must be positive and numeric"; |
|
284 | throw new \InvalidArgumentException($msg); |
|
285 | } |
|
286 | $this->scale = $scale; |
|
287 | return $this; |
|
288 | } |
|
289 | ||
290 | /** |
|
291 | * Gets as unicode |
@@ 250-259 (lines=10) @@ | ||
247 | * @param integer $precision |
|
248 | * @return self |
|
249 | */ |
|
250 | public function setPrecision($precision) |
|
251 | { |
|
252 | $msg = null; |
|
253 | if (null != $precision && !(is_numeric($precision) && 0 <= $precision)) { |
|
254 | $msg = "Precision must be numeric and non-negative"; |
|
255 | throw new \InvalidArgumentException($msg); |
|
256 | } |
|
257 | $this->precision = $precision; |
|
258 | return $this; |
|
259 | } |
|
260 | ||
261 | /** |
|
262 | * Gets as scale |
|
@@ 277-286 (lines=10) @@ | ||
274 | * @param integer $scale |
|
275 | * @return self |
|
276 | */ |
|
277 | public function setScale($scale) |
|
278 | { |
|
279 | $msg = null; |
|
280 | if (null != $scale && !(is_numeric($scale) && 0 <= $scale)) { |
|
281 | $msg = "Scale must be numeric and non-negative"; |
|
282 | throw new \InvalidArgumentException($msg); |
|
283 | } |
|
284 | $this->scale = $scale; |
|
285 | return $this; |
|
286 | } |
|
287 | ||
288 | /** |
|
289 | * Gets as unicode |
@@ 283-292 (lines=10) @@ | ||
280 | * @param integer $precision |
|
281 | * @return self |
|
282 | */ |
|
283 | public function setPrecision($precision) |
|
284 | { |
|
285 | $msg = null; |
|
286 | if (null != $precision && !$this->isTPrecisionFacetValid($precision)) { |
|
287 | $msg = "Precision must be a valid TPrecisionFacet"; |
|
288 | throw new \InvalidArgumentException($msg); |
|
289 | } |
|
290 | $this->precision = $precision; |
|
291 | return $this; |
|
292 | } |
|
293 | ||
294 | /** |
|
295 | * Gets as scale |
|
@@ 310-319 (lines=10) @@ | ||
307 | * @param integer $scale |
|
308 | * @return self |
|
309 | */ |
|
310 | public function setScale($scale) |
|
311 | { |
|
312 | $msg = null; |
|
313 | if (null != $scale && !$this->isTScaleFacetValid($scale)) { |
|
314 | $msg = "Scale must be a valid TScaleFacet"; |
|
315 | throw new \InvalidArgumentException($msg); |
|
316 | } |
|
317 | $this->scale = $scale; |
|
318 | return $this; |
|
319 | } |
|
320 | ||
321 | /** |
|
322 | * Gets as unicode |