for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TelegramBot\Api\Types;
use TelegramBot\Api\BaseType;
use TelegramBot\Api\InvalidArgumentException;
use TelegramBot\Api\TypeInterface;
/**
* Class Poll
* This object contains information about a poll.
*
* @package TelegramBot\Api\Types
*/
class Poll extends BaseType implements TypeInterface
{
* {@inheritdoc}
* @var array
static protected $requiredParams = ['id', 'question', 'options', 'is_closed'];
static protected $map = [
'id' => true,
'question' => true,
'options' => ArrayOfPollOption::class,
'is_closed' => true
];
* Unique poll identifier
* @var string
protected $id;
* Poll question, 1-255 characters
protected $question;
* List of poll options
* Array of \TelegramBot\Api\Types\PollOption
protected $options;
* True, if the poll is closed
* @var boolean
protected $isClosed;
* @return string
public function getId()
return $this->id;
}
* @param string $id
public function setId($id)
$this->id = $id;
public function getQuestion()
return $this->question;
* @param string $question
public function setQuestion($question)
$this->question = $question;
* @return array
public function getOptions()
return $this->options;
* @param array $options
public function setOptions($options)
$this->options = $options;
* @return bool
public function isClosed()
return $this->isClosed;
* @param bool $isClosed
public function setIsClosed($isClosed)
$this->isClosed = $isClosed;