| Total Complexity | 4 |
| Total Lines | 49 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class ForceReply |
||
| 15 | { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply' |
||
| 19 | * |
||
| 20 | * @var bool |
||
| 21 | */ |
||
| 22 | private $force_reply; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are |
||
| 26 | * @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender |
||
| 27 | * of the original message. |
||
| 28 | * |
||
| 29 | * @var bool|null |
||
| 30 | */ |
||
| 31 | private $selective; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return bool |
||
| 35 | */ |
||
| 36 | public function isForceReply(): bool |
||
| 37 | { |
||
| 38 | return $this->force_reply; |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param bool $force_reply |
||
| 43 | */ |
||
| 44 | public function setForceReply(bool $force_reply): void |
||
| 45 | { |
||
| 46 | $this->force_reply = $force_reply; |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @return bool|null |
||
| 51 | */ |
||
| 52 | public function getSelective(): ?bool |
||
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @param bool|null $selective |
||
| 59 | */ |
||
| 60 | public function setSelective(?bool $selective): void |
||
| 63 | } |
||
| 64 | |||
| 65 | } |