Total Complexity | 2 |
Total Lines | 58 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
16 | class SendContactMethod implements SendMethodAliasInterface |
||
17 | { |
||
18 | use FillFromArrayTrait; |
||
19 | use SendToChatVariablesTrait; |
||
20 | |||
21 | /** |
||
22 | * Contact's phone number. |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | public $phoneNumber; |
||
27 | |||
28 | /** |
||
29 | * Contact's first name. |
||
30 | * |
||
31 | * @var string |
||
32 | */ |
||
33 | public $firstName; |
||
34 | |||
35 | /** |
||
36 | * Optional. Contact's last name. |
||
37 | * |
||
38 | * @var string|null |
||
39 | */ |
||
40 | public $lastName; |
||
41 | |||
42 | /** |
||
43 | * Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes. |
||
44 | * |
||
45 | * @var string|null |
||
46 | */ |
||
47 | public $vcard; |
||
48 | |||
49 | /** |
||
50 | * @param int|string $chatId |
||
51 | * @param string $phoneNumber |
||
52 | * @param string $firstName |
||
53 | * @param array|null $data |
||
54 | * |
||
55 | * @throws \TgBotApi\BotApiBase\Exception\BadArgumentException |
||
56 | * |
||
57 | * @return SendContactMethod |
||
58 | */ |
||
59 | 2 | public static function create( |
|
76 |