1 | <?php |
||
5 | class InlineQueryResultPhoto extends InlineQueryResultAbstract |
||
6 | { |
||
7 | const ENTITY_TYPE = 'InlineQueryResultPhoto'; |
||
8 | |||
9 | const RESULT_TYPE = 'photo'; |
||
10 | |||
11 | protected $photo_url; |
||
12 | |||
13 | protected $photo_width; |
||
14 | |||
15 | protected $photo_height; |
||
16 | |||
17 | protected $description; |
||
18 | |||
19 | protected $caption; |
||
20 | |||
21 | protected $supportedProperties = [ |
||
22 | 'type' => true, |
||
23 | 'id' => true, |
||
24 | 'photo_url' => true, |
||
25 | 'photo_width' => false, |
||
26 | 'photo_height' => false, |
||
27 | 'thumb_url' => true, |
||
28 | 'title' => false, |
||
29 | 'description' => false, |
||
30 | 'caption' => false, |
||
31 | 'reply_markup' => false, |
||
32 | 'input_message_content' => true, |
||
33 | ]; |
||
34 | |||
35 | /** |
||
36 | * @return string |
||
37 | */ |
||
38 | public function getPhotoUrl() |
||
42 | |||
43 | /** |
||
44 | * @param string $photo_url |
||
45 | * |
||
46 | * @return $this |
||
47 | */ |
||
48 | public function setPhotoUrl($photo_url) |
||
54 | |||
55 | /** |
||
56 | * @return int |
||
57 | */ |
||
58 | public function getPhotoWidth() |
||
62 | |||
63 | /** |
||
64 | * @param int $photo_width |
||
65 | * |
||
66 | * @return $this |
||
67 | */ |
||
68 | public function setPhotoWidth($photo_width) |
||
74 | |||
75 | /** |
||
76 | * @return int |
||
77 | */ |
||
78 | public function getPhotoHeight() |
||
82 | |||
83 | /** |
||
84 | * @param int $photo_height |
||
85 | * |
||
86 | * @return $this |
||
87 | */ |
||
88 | public function setPhotoHeight($photo_height) |
||
94 | |||
95 | /** |
||
96 | * @return mixed |
||
97 | */ |
||
98 | public function getDescription() |
||
102 | |||
103 | /** |
||
104 | * @param string $description |
||
105 | * |
||
106 | * @return $this |
||
107 | */ |
||
108 | public function setDescription($description) |
||
114 | |||
115 | /** |
||
116 | * @return mixed |
||
117 | */ |
||
118 | public function getCaption() |
||
122 | |||
123 | /** |
||
124 | * @param string $caption |
||
125 | * |
||
126 | * @return $this |
||
127 | */ |
||
128 | public function setCaption($caption) |
||
134 | } |
||
135 |