for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* User: iGusev
* Date: 14/04/16
* Time: 16:01
*/
namespace TelegramBot\Api\Types\Inline\InputMessageContent;
use TelegramBot\Api\BaseType;
use TelegramBot\Api\TypeInterface;
* Class Contact
* @see https://core.telegram.org/bots/api#inputcontactmessagecontent
*
* Represents the content of a contact message to be sent as the result of an inline query.
* @package TelegramBot\Api\Types\Inline
class Contact extends BaseType implements TypeInterface
{
* {@inheritdoc}
* @var array
static protected $requiredParams = ['phone_number', 'first_name'];
static protected $map = [
'phone_number' => true,
'first_name' => true,
'last_name' => true
];
* Contact's phone number
* @var string
protected $phoneNumber;
* Contact's first name
protected $firstName;
* Optional. Contact's last name
protected $lastName;
* @return string
public function getPhoneNumber()
return $this->phoneNumber;
}
* @param string $phoneNumber
public function setPhoneNumber($phoneNumber)
$this->phoneNumber = $phoneNumber;
* @return mixed
public function getFirstName()
return $this->firstName;
* @param mixed $firstName
public function setFirstName($firstName)
$this->firstName = $firstName;
public function getLastName()
return $this->lastName;
* @param string $lastName
public function setLastName($lastName)
$this->lastName = $lastName;