@@ 293-317 (lines=25) @@ | ||
290 | ||
291 | } |
|
292 | ||
293 | class CardImage { |
|
294 | /** |
|
295 | * @var string $url Image URL |
|
296 | * @var string $url2x Image URL for the icon on retina |
|
297 | */ |
|
298 | public $url; |
|
299 | public $urlat2; |
|
300 | ||
301 | /** |
|
302 | * CardImage constructor. |
|
303 | * |
|
304 | * @param string $url Image URL |
|
305 | */ |
|
306 | public function __construct($url) |
|
307 | { |
|
308 | $this->url = $url; |
|
309 | } |
|
310 | ||
311 | public function toArray(){ |
|
312 | $result = array(); |
|
313 | if ($this->url) $result['url'] = $this->url; |
|
314 | if ($this->urlat2) $result['url@2x'] = $this->urlat2; |
|
315 | return $result; |
|
316 | } |
|
317 | } |
|
318 | ||
319 | class CardAttribute { |
|
320 | /** |
|
@@ 414-438 (lines=25) @@ | ||
411 | * An object with the following properties. |
|
412 | * @package GorkaLaucirica\HipchatAPIv2Client\Model |
|
413 | */ |
|
414 | class CardIcon { |
|
415 | /** |
|
416 | * @var string $url The url where the icon is Valid length range: 1 - unlimited. @required |
|
417 | * @var string $urlat2 The url for the icon in retina. Valid length range: 1 - unlimited. |
|
418 | */ |
|
419 | public $url; |
|
420 | public $urlat2; |
|
421 | ||
422 | /** |
|
423 | * CardIcon constructor. |
|
424 | * |
|
425 | * @param string $url The URL for the icon |
|
426 | */ |
|
427 | public function __construct($url) |
|
428 | { |
|
429 | $this->url = $url; |
|
430 | } |
|
431 | ||
432 | public function toArray(){ |
|
433 | $result = array(); |
|
434 | if ($this->url) $result['url'] = $this->url; |
|
435 | if ($this->urlat2) $result['url@2x'] = $this->urlat2; |
|
436 | return $result; |
|
437 | } |
|
438 | } |
|
439 | ||
440 | /** |
|
441 | * An object with the following properties. |