1 | <?php |
||
15 | class AbstractInlineQueryResult extends BaseType |
||
16 | { |
||
17 | /** |
||
18 | * Type of the result, must be one of: article, photo, gif, mpeg4_gif, video |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $type; |
||
23 | |||
24 | /** |
||
25 | * Unique identifier for this result, 1-64 bytes |
||
26 | * |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $id; |
||
30 | |||
31 | /** |
||
32 | * Title for the result |
||
33 | * |
||
34 | * @var string |
||
35 | */ |
||
36 | protected $title; |
||
37 | |||
38 | /** |
||
39 | * Content of the message to be sent instead of the file |
||
40 | * |
||
41 | * @var InputMessageContent |
||
42 | */ |
||
43 | protected $inputMessageContent; |
||
44 | |||
45 | /** |
||
46 | * Optional. Inline keyboard attached to the message |
||
47 | * |
||
48 | * @var InlineKeyboardMarkup |
||
49 | */ |
||
50 | protected $replyMarkup; |
||
51 | |||
52 | /** |
||
53 | * AbstractInlineQueryResult constructor. |
||
54 | * |
||
55 | * @param string $id |
||
56 | * @param string $title |
||
57 | * @param InputMessageContent|null $inputMessageContent |
||
58 | * @param InlineKeyboardMarkup|null $replyMarkup |
||
59 | */ |
||
60 | public function __construct($id, $title, $inputMessageContent = null, $replyMarkup = null) |
||
67 | |||
68 | /** |
||
69 | * @return string |
||
70 | */ |
||
71 | public function getType() |
||
75 | |||
76 | /** |
||
77 | * @param string $type |
||
78 | */ |
||
79 | public function setType($type) |
||
83 | |||
84 | /** |
||
85 | * @return string |
||
86 | */ |
||
87 | public function getId() |
||
91 | |||
92 | /** |
||
93 | * @param string $id |
||
94 | */ |
||
95 | public function setId($id) |
||
99 | |||
100 | /** |
||
101 | * @return string |
||
102 | */ |
||
103 | public function getTitle() |
||
107 | |||
108 | /** |
||
109 | * @param string $title |
||
110 | */ |
||
111 | public function setTitle($title) |
||
115 | |||
116 | /** |
||
117 | * @return InputMessageContent |
||
118 | */ |
||
119 | public function getInputMessageContent() |
||
123 | |||
124 | /** |
||
125 | * @param InputMessageContent $inputMessageContent |
||
126 | */ |
||
127 | public function setInputMessageContent($inputMessageContent) |
||
131 | |||
132 | /** |
||
133 | * @return InlineKeyboardMarkup |
||
134 | */ |
||
135 | public function getReplyMarkup() |
||
139 | |||
140 | /** |
||
141 | * @param InlineKeyboardMarkup $replyMarkup |
||
142 | */ |
||
143 | public function setReplyMarkup($replyMarkup) |
||
147 | } |
||
148 |