for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TelegramBot\Api\Types\Payments;
use TelegramBot\Api\BaseType;
/**
* Class ShippingOption
* This object represents one shipping option.
*
* @package TelegramBot\Api\Types\Payments
*/
class ShippingOption extends BaseType
{
* @var array
protected static $requiredParams = ['id', 'title', 'prices'];
protected static $map = [
'id' => true,
'title' => true,
'prices' => ArrayOfLabeledPrice::class
];
* Shipping option identifier
* @var string
protected $id;
* Option title
protected $title;
* List of price portions
protected $prices;
* @author MY
* @return string
public function getId()
return $this->id;
}
* @param string $id
* @return void
public function setId($id)
$this->id = $id;
public function getTitle()
return $this->title;
* @param string $title
public function setTitle($title)
$this->title = $title;
* @return array
public function getPrices()
return $this->prices;
* @param array $prices
public function setPrices($prices)
$this->prices = $prices;