for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TelegramBot\Api\Types\Payments\Query;
use TelegramBot\Api\BaseType;
use TelegramBot\Api\Types\Payments\ArrayOfLabeledPrice;
/**
* Class AnswerPreCheckoutQuery
* Use this method to respond to such pre-checkout queries.
*
* @package TelegramBot\Api\Types\Payments\Query
*/
class AnswerPreCheckoutQuery extends BaseType
{
* @var array
static protected $requiredParams = ['pre_checkout_query_id', 'ok'];
static protected $map = [
'pre_checkout_query_id' => true,
'ok' => true,
'error_message' => true,
];
* Unique identifier for the query to be answered
* @var string
protected $preCheckoutQueryId;
* Specify True if everything is alright
* @var bool
protected $ok;
* Error message in human readable form that explains the reason for failure to proceed with the checkout
protected $errorMessage;
* @author MY
* @return true
public function getOk()
return $this->ok;
}
* @param true $ok
public function setOk($ok)
$this->ok = $ok;
$ok
object<TelegramBot\Api\Types\Payments\Query\true>
boolean
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..
* @return string
public function getErrorMessage()
return $this->errorMessage;
* @param string $errorMessage
public function setErrorMessage($errorMessage)
$this->errorMessage = $errorMessage;
public function getPreCheckoutQueryId()
return $this->preCheckoutQueryId;
* @param string $preCheckoutQueryId
public function setPreCheckoutQueryId($preCheckoutQueryId)
$this->preCheckoutQueryId = $preCheckoutQueryId;
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..