| Total Complexity | 8 |
| Total Lines | 105 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class InlineQueryResultGif extends InlineQueryResultAbstract |
||
| 6 | { |
||
| 7 | const ENTITY_TYPE = 'InlineQueryResultGif'; |
||
| 8 | |||
| 9 | const RESULT_TYPE = 'gif'; |
||
| 10 | |||
| 11 | protected $gif_url; |
||
| 12 | |||
| 13 | protected $gif_width; |
||
| 14 | |||
| 15 | protected $gif_height; |
||
| 16 | |||
| 17 | protected $caption; |
||
| 18 | |||
| 19 | protected $supportedProperties = [ |
||
| 20 | 'type' => true, |
||
| 21 | 'id' => true, |
||
| 22 | 'gif_url' => true, |
||
| 23 | 'gif_width' => false, |
||
| 24 | 'gif_height' => false, |
||
| 25 | 'thumb_url' => true, |
||
| 26 | 'title' => false, |
||
| 27 | 'caption' => false, |
||
| 28 | 'reply_markup' => false, |
||
| 29 | 'input_message_content' => true, |
||
| 30 | ]; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return mixed |
||
| 34 | */ |
||
| 35 | public function getGifUrl() |
||
| 36 | { |
||
| 37 | return (string) $this->gif_url; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param string $gif_url |
||
| 42 | * |
||
| 43 | * @return $this |
||
| 44 | */ |
||
| 45 | public function setGifUrl($gif_url) |
||
| 46 | { |
||
| 47 | $this->gif_url = $gif_url; |
||
| 48 | |||
| 49 | return $this; |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return int |
||
| 54 | */ |
||
| 55 | public function getGifWidth() |
||
| 56 | { |
||
| 57 | return $this->gif_width; |
||
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @param int $gif_width |
||
| 62 | * |
||
| 63 | * @return $this |
||
| 64 | */ |
||
| 65 | public function setGifWidth($gif_width) |
||
| 66 | { |
||
| 67 | $this->gif_width = $gif_width; |
||
| 68 | |||
| 69 | return $this; |
||
| 70 | } |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @return mixed |
||
| 74 | */ |
||
| 75 | public function getGifHeight() |
||
| 76 | { |
||
| 77 | return $this->gif_height; |
||
| 78 | } |
||
| 79 | |||
| 80 | /** |
||
| 81 | * @param int $gif_height |
||
| 82 | * |
||
| 83 | * @return $this |
||
| 84 | */ |
||
| 85 | public function setGifHeight($gif_height) |
||
| 86 | { |
||
| 87 | $this->gif_height = $gif_height; |
||
| 88 | |||
| 89 | return $this; |
||
| 90 | } |
||
| 91 | |||
| 92 | /** |
||
| 93 | * @return mixed |
||
| 94 | */ |
||
| 95 | public function getCaption() |
||
| 96 | { |
||
| 97 | return $this->caption; |
||
| 98 | } |
||
| 99 | |||
| 100 | /** |
||
| 101 | * @param mixed $caption |
||
| 102 | * |
||
| 103 | * @return $this |
||
| 104 | */ |
||
| 105 | public function setCaption($caption) |
||
| 110 | } |
||
| 111 | } |
||
| 112 |