1 | <?php |
||
14 | class ChosenInlineResult extends BaseType |
||
15 | { |
||
16 | /** |
||
17 | * {@inheritdoc} |
||
18 | * |
||
19 | * @var array |
||
20 | */ |
||
21 | static protected $requiredParams = ['result_id', 'from', 'query']; |
||
22 | |||
23 | /** |
||
24 | * {@inheritdoc} |
||
25 | * |
||
26 | * @var array |
||
27 | */ |
||
28 | static protected $map = [ |
||
29 | 'result_id' => true, |
||
30 | 'from' => User::class, |
||
31 | 'query' => true, |
||
32 | ]; |
||
33 | |||
34 | /** |
||
35 | * The unique identifier for the result that was chosen. |
||
36 | * |
||
37 | * @var string |
||
38 | */ |
||
39 | protected $resultId; |
||
40 | |||
41 | /** |
||
42 | * The user that chose the result. |
||
43 | * |
||
44 | * @var User |
||
45 | */ |
||
46 | protected $from; |
||
47 | |||
48 | /** |
||
49 | * The query that was used to obtain the result. |
||
50 | * |
||
51 | * @var string |
||
52 | */ |
||
53 | protected $query; |
||
54 | |||
55 | /** |
||
56 | * @return string |
||
57 | */ |
||
58 | public function getResultId() |
||
62 | |||
63 | /** |
||
64 | * @param string $resultId |
||
65 | */ |
||
66 | public function setResultId($resultId) |
||
70 | |||
71 | /** |
||
72 | * @return User |
||
73 | */ |
||
74 | public function getFrom() |
||
78 | |||
79 | /** |
||
80 | * @param User $from |
||
81 | */ |
||
82 | public function setFrom(User $from) |
||
86 | |||
87 | /** |
||
88 | * @return string |
||
89 | */ |
||
90 | public function getQuery() |
||
94 | |||
95 | /** |
||
96 | * @param string $query |
||
97 | */ |
||
98 | public function setQuery($query) |
||
102 | } |
||
103 |