|
| 1 | +<?php |
| 2 | + |
| 3 | +namespace TelegramBot\\Api\\Types; |
| 4 | + |
| 5 | +use TelegramBot\\Api\\BaseType; |
| 6 | +use TelegramBot\\Api\\TypeInterface; |
| 7 | + |
| 8 | +class GiftInfo extends BaseType implements TypeInterface |
| 9 | +{ |
| 10 | + protected static $requiredParams = ['gift']; |
| 11 | + |
| 12 | + protected static $map = [ |
| 13 | + 'gift' => Gift::class, |
| 14 | + 'owned_gift_id' => true, |
| 15 | + 'convert_star_count' => true, |
| 16 | + 'prepaid_upgrade_star_count' => true, |
| 17 | + 'can_be_upgraded' => true, |
| 18 | + 'text' => true, |
| 19 | + 'entities' => ArrayOfMessageEntity::class, |
| 20 | + 'is_private' => true, |
| 21 | + ]; |
| 22 | + |
| 23 | + protected $gift; |
| 24 | + protected $ownedGiftId; |
| 25 | + protected $convertStarCount; |
| 26 | + protected $prepaidUpgradeStarCount; |
| 27 | + protected $canBeUpgraded; |
| 28 | + protected $text; |
| 29 | + protected $entities; |
| 30 | + protected $isPrivate; |
| 31 | + |
| 32 | + public function getGift() |
| 33 | + { |
| 34 | + return $this->gift; |
| 35 | + } |
| 36 | + |
| 37 | + public function setGift($gift) |
| 38 | + { |
| 39 | + $this->gift = $gift; |
| 40 | + } |
| 41 | + |
| 42 | + public function getOwnedGiftId() |
| 43 | + { |
| 44 | + return $this->ownedGiftId; |
| 45 | + } |
| 46 | + |
| 47 | + public function setOwnedGiftId($ownedGiftId) |
| 48 | + { |
| 49 | + $this->ownedGiftId = $ownedGiftId; |
| 50 | + } |
| 51 | + |
| 52 | + public function getConvertStarCount() |
| 53 | + { |
| 54 | + return $this->convertStarCount; |
| 55 | + } |
| 56 | + |
| 57 | + public function setConvertStarCount($convertStarCount) |
| 58 | + { |
| 59 | + $this->convertStarCount = $convertStarCount; |
| 60 | + } |
| 61 | + |
| 62 | + public function getPrepaidUpgradeStarCount() |
| 63 | + { |
| 64 | + return $this->prepaidUpgradeStarCount; |
| 65 | + } |
| 66 | + |
| 67 | + public function setPrepaidUpgradeStarCount($prepaidUpgradeStarCount) |
| 68 | + { |
| 69 | + $this->prepaidUpgradeStarCount = $prepaidUpgradeStarCount; |
| 70 | + } |
| 71 | + |
| 72 | + public function getCanBeUpgraded() |
| 73 | + { |
| 74 | + return $this->canBeUpgraded; |
| 75 | + } |
| 76 | + |
| 77 | + public function setCanBeUpgraded($canBeUpgraded) |
| 78 | + { |
| 79 | + $this->canBeUpgraded = $canBeUpgraded; |
| 80 | + } |
| 81 | + |
| 82 | + public function getText() |
| 83 | + { |
| 84 | + return $this->text; |
| 85 | + } |
| 86 | + |
| 87 | + public function setText($text) |
| 88 | + { |
| 89 | + $this->text = $text; |
| 90 | + } |
| 91 | + |
| 92 | + public function getEntities() |
| 93 | + { |
| 94 | + return $this->entities; |
| 95 | + } |
| 96 | + |
| 97 | + public function setEntities($entities) |
| 98 | + { |
| 99 | + $this->entities = $entities; |
| 100 | + } |
| 101 | + |
| 102 | + public function getIsPrivate() |
| 103 | + { |
| 104 | + return $this->isPrivate; |
| 105 | + } |
| 106 | + |
| 107 | + public function setIsPrivate($isPrivate) |
| 108 | + { |
| 109 | + $this->isPrivate = $isPrivate; |
| 110 | + } |
| 111 | +} |
0 commit comments