1 | <?php |
||
10 | class Image extends ElementBase |
||
11 | { |
||
12 | /** |
||
13 | * The URL of an image resource associated with the object. |
||
14 | * |
||
15 | * @var string |
||
16 | */ |
||
17 | public $url; |
||
18 | |||
19 | /** |
||
20 | * An alternate URL to use if an image resource requires HTTPS. |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | public $secureUrl; |
||
25 | |||
26 | /** |
||
27 | * The MIME type of an image resource. |
||
28 | * |
||
29 | * @var type |
||
30 | */ |
||
31 | public $type; |
||
32 | |||
33 | /** |
||
34 | * The width of an image resource in pixels. |
||
35 | * |
||
36 | * @var int |
||
37 | */ |
||
38 | public $width; |
||
39 | |||
40 | /** |
||
41 | * The height of an image resource in pixels. |
||
42 | * |
||
43 | * @var int |
||
44 | */ |
||
45 | public $height; |
||
46 | |||
47 | /** |
||
48 | * Whether the image is user-generated or not. |
||
49 | * |
||
50 | * @var bool |
||
51 | */ |
||
52 | public $userGenerated; |
||
53 | |||
54 | /** |
||
55 | * @param string $url URL to the image file. |
||
56 | */ |
||
57 | 2 | public function __construct($url) |
|
63 | |||
64 | /** |
||
65 | * Gets all properties set on this element. |
||
66 | * |
||
67 | * @return array|Property[] |
||
68 | */ |
||
69 | public function getProperties() |
||
100 | } |
||
101 |