|
| 1 | +<?php |
| 2 | + |
| 3 | +namespace TelegramBot\\Api\\Types; |
| 4 | + |
| 5 | +use TelegramBot\\Api\\BaseType; |
| 6 | +use TelegramBot\\Api\\TypeInterface; |
| 7 | + |
| 8 | +class AcceptedGiftTypes extends BaseType implements TypeInterface |
| 9 | +{ |
| 10 | + protected static $requiredParams = ['unlimited_gifts', 'limited_gifts', 'unique_gifts', 'premium_subscription']; |
| 11 | + |
| 12 | + protected static $map = [ |
| 13 | + 'unlimited_gifts' => true, |
| 14 | + 'limited_gifts' => true, |
| 15 | + 'unique_gifts' => true, |
| 16 | + 'premium_subscription' => true, |
| 17 | + ]; |
| 18 | + |
| 19 | + protected $unlimitedGifts; |
| 20 | + protected $limitedGifts; |
| 21 | + protected $uniqueGifts; |
| 22 | + protected $premiumSubscription; |
| 23 | + |
| 24 | + public function getUnlimitedGifts() |
| 25 | + { |
| 26 | + return $this->unlimitedGifts; |
| 27 | + } |
| 28 | + |
| 29 | + public function setUnlimitedGifts($unlimitedGifts) |
| 30 | + { |
| 31 | + $this->unlimitedGifts = $unlimitedGifts; |
| 32 | + } |
| 33 | + |
| 34 | + public function getLimitedGifts() |
| 35 | + { |
| 36 | + return $this->limitedGifts; |
| 37 | + } |
| 38 | + |
| 39 | + public function setLimitedGifts($limitedGifts) |
| 40 | + { |
| 41 | + $this->limitedGifts = $limitedGifts; |
| 42 | + } |
| 43 | + |
| 44 | + public function getUniqueGifts() |
| 45 | + { |
| 46 | + return $this->uniqueGifts; |
| 47 | + } |
| 48 | + |
| 49 | + public function setUniqueGifts($uniqueGifts) |
| 50 | + { |
| 51 | + $this->uniqueGifts = $uniqueGifts; |
| 52 | + } |
| 53 | + |
| 54 | + public function getPremiumSubscription() |
| 55 | + { |
| 56 | + return $this->premiumSubscription; |
| 57 | + } |
| 58 | + |
| 59 | + public function setPremiumSubscription($premiumSubscription) |
| 60 | + { |
| 61 | + $this->premiumSubscription = $premiumSubscription; |
| 62 | + } |
| 63 | +} |
0 commit comments