| Total Complexity | 2 |
| Total Lines | 81 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class InlineQueryResultArticleType extends InlineQueryResultType |
||
| 16 | { |
||
| 17 | use FillFromArrayTrait; |
||
| 18 | /** |
||
| 19 | * Title of the result. |
||
| 20 | * |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | public $title; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Content of the message to be sent. |
||
| 27 | * |
||
| 28 | * @var InputMessageContentType |
||
| 29 | */ |
||
| 30 | public $inputMessageContent; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Optional. URL of the result. |
||
| 34 | * |
||
| 35 | * @var string|null |
||
| 36 | */ |
||
| 37 | public $url; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Optional. Pass True, if you don't want the URL to be shown in the message. |
||
| 41 | * |
||
| 42 | * @var bool|null |
||
| 43 | */ |
||
| 44 | public $hideUrl; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Optional. Short description of the result. |
||
| 48 | * |
||
| 49 | * @var string|null |
||
| 50 | */ |
||
| 51 | public $description; |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Optional. Url of the thumbnail for the result. |
||
| 55 | * |
||
| 56 | * @var string|null |
||
| 57 | */ |
||
| 58 | public $thumbUrl; |
||
| 59 | |||
| 60 | /** |
||
| 61 | * Optional. Thumbnail width. |
||
| 62 | * |
||
| 63 | * @var int|null |
||
| 64 | */ |
||
| 65 | public $thumbWidth; |
||
| 66 | |||
| 67 | /** |
||
| 68 | * Optional. Thumbnail height. |
||
| 69 | * |
||
| 70 | * @var int|null |
||
| 71 | */ |
||
| 72 | public $thumbHeight; |
||
| 73 | |||
| 74 | /** |
||
| 75 | * InlineQueryResultArticleType constructor. |
||
| 76 | * |
||
| 77 | * @param string $id |
||
| 78 | * @param string $title |
||
| 79 | * @param InputMessageContentType $inputMessageContent |
||
| 80 | * @param array|null $data |
||
| 81 | * |
||
| 82 | * @throws \Greenplugin\TelegramBot\Exception\BadArgumentException |
||
| 83 | */ |
||
| 84 | public function __construct( |
||
| 99 |