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