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