Completed
Push — master ( a1f3e5...eb9bcc )
by Irfaq
02:42
created

InlineQueryResultContact   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 8
ccs 0
cts 4
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace Telegram\Bot\Objects\InlineQuery;
4
5
/**
6
 * Class InlineQueryResultContact
7
 *
8
 * <code>
9
 * $params = [
10
 *   'id'                       => '',
11
 *   'phone_number'             => '',
12
 *   'first_name'               => '',
13
 *   'last_name'                => '',
14
 *   'reply_markup'             => '',
15
 *   'input_message_content'    => '',
16
 *   'thumb_url'                => '',
17
 *   'thumb_width'              => '',
18
 *   'thumb_height'             => '',
19
 * ];
20
 * </code>
21
 *
22
 * @link https://core.telegram.org/bots/api#inlinequeryresultcontact
23
 *
24
 * @method $this setId($string)                     Unique identifier for this result, 1-64 Bytes
25
 * @method $this setPhoneNumber($string)            Contact's phone number
26
 * @method $this setFirstName($string)              Contact's first name
27
 * @method $this setLastName($string)               Optional. Contact's last name
28
 * @method $this setReplyMarkup($object)            Optional. Inline keyboard attached to the message
29
 * @method $this setInputMessageContent($object)    Optional. Content of the message to be sent instead of the contact
30
 * @method $this setThumbUrl($string)               Optional. Url of the thumbnail for the result
31
 * @method $this setThumbWidth($int)                Optional. Thumbnail width
32
 * @method $this setThumbHeight($int)               Optional. Thumbnail height
33
 */
34
class InlineQueryResultContact extends InlineBaseObject
35
{
36
    public function __construct($params = [])
37
    {
38
        parent::__construct($params);
39
        $this->put('type', 'contact');
40
    }
41
}
42